class Started
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/Application/Started.php \PHPUnit\Event\Application\Started
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/TestRunner/Started.php \PHPUnit\Event\TestRunner\Started
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\TestSuite\Started implements \PHPUnit\Event\Event
Expanded class hierarchy of Started
8 files declare their use of Started
- Collector.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php - DispatchingEmitter.php in vendor/
phpunit/ phpunit/ src/ Event/ Emitter/ DispatchingEmitter.php - JunitXmlLogger.php in vendor/
phpunit/ phpunit/ src/ Logging/ JUnit/ JunitXmlLogger.php - TeamCityLogger.php in vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ TeamCityLogger.php - TestSuiteStartedSubscriber.php in vendor/
phpunit/ phpunit/ src/ Logging/ JUnit/ Subscriber/ TestSuiteStartedSubscriber.php
1 string reference to 'Started'
- FiberCaster::castFiber in vendor/
symfony/ var-dumper/ Caster/ FiberCaster.php
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ TestSuite/ Started.php, line 21
Namespace
PHPUnit\Event\TestSuiteView source
final class Started implements Event {
private readonly Telemetry\Info $telemetryInfo;
private readonly TestSuite $testSuite;
public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite) {
$this->telemetryInfo = $telemetryInfo;
$this->testSuite = $testSuite;
}
public function telemetryInfo() : Telemetry\Info {
return $this->telemetryInfo;
}
public function testSuite() : TestSuite {
return $this->testSuite;
}
public function asString() : string {
return sprintf('Test Suite Started (%s, %d test%s)', $this->testSuite
->name(), $this->testSuite
->count(), $this->testSuite
->count() !== 1 ? 's' : '');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Started::$telemetryInfo | private | property | ||
Started::$testSuite | private | property | ||
Started::asString | public | function | Overrides Event::asString | |
Started::telemetryInfo | public | function | Overrides Event::telemetryInfo | |
Started::testSuite | public | function | ||
Started::__construct | public | function |