function TestResultCollector::testTriggeredPhpNotice
File
-
vendor/
phpunit/ phpunit/ src/ Logging/ TestDox/ TestResult/ TestResultCollector.php, line 309
Class
- TestResultCollector
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Logging\TestDoxCode
public function testTriggeredPhpNotice(PhpNoticeTriggered $event) : void {
if (!$event->test()
->isTestMethod()) {
return;
}
if ($event->ignoredByBaseline()) {
return;
}
if (!$this->source
->ignoreSuppressionOfPhpNotices() && $event->wasSuppressed()) {
return;
}
if ($this->source
->restrictNotices() && !(new SourceFilter())->includes($this->source, $event->file())) {
return;
}
$this->updateTestStatus(TestStatus::notice());
}