public function testTriggeredPhpunitError(PhpunitErrorTriggered $event) : void { if (!$event->test() ->isTestMethod()) { return; } $this->updateTestStatus(TestStatus::error()); }