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