function ProgressPrinter::testErrored
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ ProgressPrinter.php, line 239
Class
- ProgressPrinter
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\Output\Default\ProgressPrinterCode
public function testErrored(Errored $event) : void {
/*
* @todo Eliminate this special case
*/
if (str_contains($event->asString(), 'Test was run in child process and ended unexpectedly')) {
$this->updateTestStatus(TestStatus::error());
return;
}
if (!$this->prepared) {
$this->printProgressForError();
}
else {
$this->updateTestStatus(TestStatus::error());
}
}