class Finished
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/Application/Finished.php \PHPUnit\Event\Application\Finished
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/Finished.php \PHPUnit\Event\Test\Finished
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/TestRunner/Finished.php \PHPUnit\Event\TestRunner\Finished
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\TestSuite\Finished implements \PHPUnit\Event\Event
Expanded class hierarchy of Finished
7 files declare their use of Finished
- Collector.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php - DispatchingEmitter.php in vendor/
phpunit/ phpunit/ src/ Event/ Emitter/ DispatchingEmitter.php - TeamCityLogger.php in vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ TeamCityLogger.php - TestSuiteFinishedSubscriber.php in vendor/
phpunit/ phpunit/ src/ Logging/ JUnit/ Subscriber/ TestSuiteFinishedSubscriber.php - TestSuiteFinishedSubscriber.php in vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ Subscriber/ TestSuiteFinishedSubscriber.php
4 string references to 'Finished'
- batch_process in core/
includes/ form.inc - Processes the batch.
- ReviewForm::submitForm in core/
modules/ migrate_drupal_ui/ src/ Form/ ReviewForm.php - Form submission handler.
- _batch_page in core/
includes/ batch.inc - Renders the batch processing page based on the current state of the batch.
- _batch_progress_page in core/
includes/ batch.inc - Outputs a batch processing page.
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ TestSuite/ Finished.php, line 21
Namespace
PHPUnit\Event\TestSuiteView source
final class Finished 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 Finished (%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 |
---|---|---|---|---|
Finished::$telemetryInfo | private | property | ||
Finished::$testSuite | private | property | ||
Finished::asString | public | function | Overrides Event::asString | |
Finished::telemetryInfo | public | function | Overrides Event::telemetryInfo | |
Finished::testSuite | public | function | ||
Finished::__construct | public | function |