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

Breadcrumb

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

function Issue::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Runner/Baseline/Issue.php \PHPUnit\Runner\Baseline\Issue::__construct()

@psalm-param non-empty-string $file @psalm-param positive-int $line @psalm-param non-empty-string $description

File

vendor/phpunit/phpunit/src/Runner/TestResult/Issue.php, line 56

Class

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

Namespace

PHPUnit\TestRunner\TestResult\Issues

Code

private function __construct(string $file, int $line, string $description, Test $triggeringTest) {
    $this->file = $file;
    $this->line = $line;
    $this->description = $description;
    $this->triggeringTests = [
        $triggeringTest->id() => [
            'test' => $triggeringTest,
            'count' => 1,
        ],
    ];
}

API Navigation

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