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

Breadcrumb

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

function Generator::testTriggeredIssue

Throws

FileDoesNotExistException

FileDoesNotHaveLineException

File

vendor/phpunit/phpunit/src/Runner/Baseline/Generator.php, line 63

Class

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

Namespace

PHPUnit\Runner\Baseline

Code

public function testTriggeredIssue(DeprecationTriggered|NoticeTriggered|PhpDeprecationTriggered|PhpNoticeTriggered|PhpWarningTriggered|WarningTriggered $event) : void {
    if ($event->wasSuppressed() && !$this->isSuppressionIgnored($event)) {
        return;
    }
    if ($this->restrict($event) && !(new SourceFilter())->includes($this->source, $event->file())) {
        return;
    }
    $this->baseline
        ->add(Issue::from($event->file(), $event->line(), null, $event->message()));
}

API Navigation

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