class ExecutionStarted
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\TestRunner\ExecutionStarted implements \PHPUnit\Event\Event
Expanded class hierarchy of ExecutionStarted
5 files declare their use of ExecutionStarted
- Collector.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php - ExecutionStartedSubscriber.php in vendor/
phpunit/ phpunit/ src/ Runner/ GarbageCollection/ Subscriber/ ExecutionStartedSubscriber.php - ExecutionStartedSubscriber.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Subscriber/ ExecutionStartedSubscriber.php - ProgressPrinter.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ ProgressPrinter.php - TestRunnerExecutionStartedSubscriber.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ Subscriber/ TestRunnerExecutionStartedSubscriber.php
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ TestRunner/ ExecutionStarted.php, line 22
Namespace
PHPUnit\Event\TestRunnerView source
final class ExecutionStarted 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 Runner Execution Started (%d test%s)', $this->testSuite
->count(), $this->testSuite
->count() !== 1 ? 's' : '');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ExecutionStarted::$telemetryInfo | private | property | ||
ExecutionStarted::$testSuite | private | property | ||
ExecutionStarted::asString | public | function | Overrides Event::asString | |
ExecutionStarted::telemetryInfo | public | function | Overrides Event::telemetryInfo | |
ExecutionStarted::testSuite | public | function | ||
ExecutionStarted::__construct | public | function |