function TeamCityLogger::testErrored
Throws
File
-
vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ TeamCityLogger.php, line 185
Class
- TeamCityLogger
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Logging\TeamCityCode
public function testErrored(Errored $event) : void {
if ($this->time === null) {
$this->time = $event->telemetryInfo()
->time();
}
$this->writeMessage('testFailed', [
'name' => $event->test()
->name(),
'message' => $this->message($event->throwable()),
'details' => $this->details($event->throwable()),
'duration' => $this->duration($event),
]);
}