function ProgressPrinter::testTriggeredPhpWarning
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ ProgressPrinter.php, line 202
Class
- ProgressPrinter
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\Output\Default\ProgressPrinterCode
public function testTriggeredPhpWarning(PhpWarningTriggered $event) : void {
if ($event->ignoredByBaseline()) {
return;
}
if ($this->source
->restrictWarnings() && !(new SourceFilter())->includes($this->source, $event->file())) {
return;
}
if (!$this->source
->ignoreSuppressionOfPhpWarnings() && $event->wasSuppressed()) {
return;
}
$this->updateTestStatus(TestStatus::warning());
}