function TestResultCollector::testErrored
File
-
vendor/
phpunit/ phpunit/ src/ Logging/ TestDox/ TestResult/ TestResultCollector.php, line 151
Class
- TestResultCollector
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Logging\TestDoxCode
public function testErrored(Errored $event) : void {
if (!$event->test()
->isTestMethod()) {
return;
}
$this->status = TestStatus::error($event->throwable()
->message());
$this->throwable = $event->throwable();
if (!$this->prepared) {
$test = $event->test();
assert($test instanceof TestMethod);
$this->process($test);
}
}