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

Breadcrumb

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

function TestResult::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Logging/TestDox/TestResult/TestResult.php \PHPUnit\Logging\TestDox\TestResult::__construct()

@psalm-param list<BeforeFirstTestMethodErrored|Errored> $testErroredEvents @psalm-param list<Failed> $testFailedEvents @psalm-param array<string,list<ConsideredRisky>> $testConsideredRiskyEvents @psalm-param list<TestSuiteSkipped> $testSuiteSkippedEvents @psalm-param list<TestSkipped> $testSkippedEvents @psalm-param list<MarkedIncomplete> $testMarkedIncompleteEvents @psalm-param array<string,list<PhpunitDeprecationTriggered>> $testTriggeredPhpunitDeprecationEvents @psalm-param array<string,list<PhpunitErrorTriggered>> $testTriggeredPhpunitErrorEvents @psalm-param array<string,list<PhpunitWarningTriggered>> $testTriggeredPhpunitWarningEvents @psalm-param list<TestRunnerDeprecationTriggered> $testRunnerTriggeredDeprecationEvents @psalm-param list<TestRunnerWarningTriggered> $testRunnerTriggeredWarningEvents @psalm-param list<Issue> $errors @psalm-param list<Issue> $deprecations @psalm-param list<Issue> $notices @psalm-param list<Issue> $warnings @psalm-param list<Issue> $phpDeprecations @psalm-param list<Issue> $phpNotices @psalm-param list<Issue> $phpWarnings @psalm-param non-negative-int $numberOfIssuesIgnoredByBaseline

File

vendor/phpunit/phpunit/src/Runner/TestResult/TestResult.php, line 154

Class

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

Namespace

PHPUnit\TestRunner\TestResult

Code

public function __construct(int $numberOfTests, int $numberOfTestsRun, int $numberOfAssertions, array $testErroredEvents, array $testFailedEvents, array $testConsideredRiskyEvents, array $testSuiteSkippedEvents, array $testSkippedEvents, array $testMarkedIncompleteEvents, array $testTriggeredPhpunitDeprecationEvents, array $testTriggeredPhpunitErrorEvents, array $testTriggeredPhpunitWarningEvents, array $testRunnerTriggeredDeprecationEvents, array $testRunnerTriggeredWarningEvents, array $errors, array $deprecations, array $notices, array $warnings, array $phpDeprecations, array $phpNotices, array $phpWarnings, int $numberOfIssuesIgnoredByBaseline) {
    $this->numberOfTests = $numberOfTests;
    $this->numberOfTestsRun = $numberOfTestsRun;
    $this->numberOfAssertions = $numberOfAssertions;
    $this->testErroredEvents = $testErroredEvents;
    $this->testFailedEvents = $testFailedEvents;
    $this->testConsideredRiskyEvents = $testConsideredRiskyEvents;
    $this->testSuiteSkippedEvents = $testSuiteSkippedEvents;
    $this->testSkippedEvents = $testSkippedEvents;
    $this->testMarkedIncompleteEvents = $testMarkedIncompleteEvents;
    $this->testTriggeredPhpunitDeprecationEvents = $testTriggeredPhpunitDeprecationEvents;
    $this->testTriggeredPhpunitErrorEvents = $testTriggeredPhpunitErrorEvents;
    $this->testTriggeredPhpunitWarningEvents = $testTriggeredPhpunitWarningEvents;
    $this->testRunnerTriggeredDeprecationEvents = $testRunnerTriggeredDeprecationEvents;
    $this->testRunnerTriggeredWarningEvents = $testRunnerTriggeredWarningEvents;
    $this->errors = $errors;
    $this->deprecations = $deprecations;
    $this->notices = $notices;
    $this->warnings = $warnings;
    $this->phpDeprecations = $phpDeprecations;
    $this->phpNotices = $phpNotices;
    $this->phpWarnings = $phpWarnings;
    $this->numberOfIssuesIgnoredByBaseline = $numberOfIssuesIgnoredByBaseline;
}
RSS feed
Powered by Drupal