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/TestRunner/Finished.php \PHPUnit\Event\TestRunner\Finished
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/TestSuite/Finished.php \PHPUnit\Event\TestSuite\Finished
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\Test\Finished implements \PHPUnit\Event\Event
Expanded class hierarchy of Finished
12 files declare their use of Finished
- Collector.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php - 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 - TestFinishedSubscriber.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ Subscriber/ TestFinishedSubscriber.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/ Test/ Lifecycle/ Finished.php, line 22
Namespace
PHPUnit\Event\TestView source
final class Finished implements Event {
private readonly Telemetry\Info $telemetryInfo;
private readonly Code\Test $test;
private readonly int $numberOfAssertionsPerformed;
public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, int $numberOfAssertionsPerformed) {
$this->telemetryInfo = $telemetryInfo;
$this->test = $test;
$this->numberOfAssertionsPerformed = $numberOfAssertionsPerformed;
}
public function telemetryInfo() : Telemetry\Info {
return $this->telemetryInfo;
}
public function test() : Code\Test {
return $this->test;
}
public function numberOfAssertionsPerformed() : int {
return $this->numberOfAssertionsPerformed;
}
public function asString() : string {
return sprintf('Test Finished (%s)', $this->test
->id());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Finished::$numberOfAssertionsPerformed | private | property | ||
Finished::$telemetryInfo | private | property | ||
Finished::$test | private | property | ||
Finished::asString | public | function | Overrides Event::asString | |
Finished::numberOfAssertionsPerformed | public | function | ||
Finished::telemetryInfo | public | function | Overrides Event::telemetryInfo | |
Finished::test | public | function | ||
Finished::__construct | public | function |