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

Breadcrumb

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

function TestResultCollector::testTriggeredNotice

File

vendor/phpunit/phpunit/src/Logging/TestDox/TestResult/TestResultCollector.php, line 242

Class

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

Namespace

PHPUnit\Logging\TestDox

Code

public function testTriggeredNotice(NoticeTriggered $event) : void {
    if (!$event->test()
        ->isTestMethod()) {
        return;
    }
    if ($event->ignoredByBaseline()) {
        return;
    }
    if (!$this->source
        ->ignoreSuppressionOfNotices() && $event->wasSuppressed()) {
        return;
    }
    if ($this->source
        ->restrictNotices() && !(new SourceFilter())->includes($this->source, $event->file())) {
        return;
    }
    $this->updateTestStatus(TestStatus::notice());
}

API Navigation

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