class ConsideredRisky
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\Test\ConsideredRisky implements \PHPUnit\Event\Event
Expanded class hierarchy of ConsideredRisky
11 files declare their use of ConsideredRisky
- Collector.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php - ResultCacheHandler.php in vendor/
phpunit/ phpunit/ src/ Runner/ ResultCache/ ResultCacheHandler.php - ResultPrinter.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ResultPrinter.php - TeamCityLogger.php in vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ TeamCityLogger.php - TestConsideredRiskySubscriber.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ Subscriber/ TestConsideredRiskySubscriber.php
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ Test/ Issue/ ConsideredRisky.php, line 23
Namespace
PHPUnit\Event\TestView source
final class ConsideredRisky implements Event {
private readonly Telemetry\Info $telemetryInfo;
private readonly Code\Test $test;
/**
* @psalm-var non-empty-string
*/
private readonly string $message;
/**
* @psalm-param non-empty-string $message
*/
public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, string $message) {
$this->telemetryInfo = $telemetryInfo;
$this->test = $test;
$this->message = $message;
}
public function telemetryInfo() : Telemetry\Info {
return $this->telemetryInfo;
}
public function test() : Code\Test {
return $this->test;
}
/**
* @psalm-return non-empty-string
*/
public function message() : string {
return $this->message;
}
public function asString() : string {
return sprintf('Test Considered Risky (%s)%s%s', $this->test
->id(), PHP_EOL, $this->message);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ConsideredRisky::$message | private | property | @psalm-var non-empty-string | |
ConsideredRisky::$telemetryInfo | private | property | ||
ConsideredRisky::$test | private | property | ||
ConsideredRisky::asString | public | function | Overrides Event::asString | |
ConsideredRisky::message | public | function | @psalm-return non-empty-string | |
ConsideredRisky::telemetryInfo | public | function | Overrides Event::telemetryInfo | |
ConsideredRisky::test | public | function | ||
ConsideredRisky::__construct | public | function | @psalm-param non-empty-string $message |