function Collector::testErrored
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php, line 299
Class
- Collector
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TestRunner\TestResultCode
public function testErrored(Errored $event) : void {
$this->testErroredEvents[] = $event;
$this->currentTestSuiteForTestClassFailed = true;
/*
* @todo Eliminate this special case
*/
if (str_contains($event->asString(), 'Test was run in child process and ended unexpectedly')) {
return;
}
if (!$this->prepared) {
$this->numberOfTestsRun++;
}
}