function Collector::testTriggeredError
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ Collector.php, line 428
Class
- Collector
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TestRunner\TestResultCode
public function testTriggeredError(ErrorTriggered $event) : void {
if (!$this->source
->ignoreSuppressionOfErrors() && $event->wasSuppressed()) {
return;
}
$id = $this->issueId($event);
if (!isset($this->errors[$id])) {
$this->errors[$id] = Issue::from($event->file(), $event->line(), $event->message(), $event->test());
return;
}
$this->errors[$id]
->triggeredBy($event->test());
}