Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ProgressPrinter.php

function ProgressPrinter::testTriggeredDeprecation

File

vendor/phpunit/phpunit/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php, line 138

Class

ProgressPrinter
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\TextUI\Output\Default\ProgressPrinter

Code

public function testTriggeredDeprecation(DeprecationTriggered $event) : void {
    if ($event->ignoredByBaseline() || $event->ignoredByTest()) {
        return;
    }
    if ($this->source
        ->restrictDeprecations() && !(new SourceFilter())->includes($this->source, $event->file())) {
        return;
    }
    if (!$this->source
        ->ignoreSuppressionOfDeprecations() && $event->wasSuppressed()) {
        return;
    }
    $this->updateTestStatus(TestStatus::deprecation());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal