function ProgressPrinter::testTriggeredPhpDeprecation
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ProgressPrinter/ ProgressPrinter.php, line 156
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 testTriggeredPhpDeprecation(PhpDeprecationTriggered $event) : void {
if ($event->ignoredByBaseline() || $event->ignoredByTest()) {
return;
}
if ($this->source
->restrictDeprecations() && !(new SourceFilter())->includes($this->source, $event->file())) {
return;
}
if (!$this->source
->ignoreSuppressionOfPhpDeprecations() && $event->wasSuppressed()) {
return;
}
$this->updateTestStatus(TestStatus::deprecation());
}