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

Breadcrumb

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

function ResultPrinter::print

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/TextUI/Output/TestDox/ResultPrinter.php \PHPUnit\TextUI\Output\TestDox\ResultPrinter::print()

File

vendor/phpunit/phpunit/src/TextUI/Output/Default/ResultPrinter.php, line 86

Class

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

Namespace

PHPUnit\TextUI\Output\Default

Code

public function print(TestResult $result) : void {
    if ($this->displayPhpunitErrors) {
        $this->printPhpunitErrors($result);
    }
    if ($this->displayPhpunitWarnings) {
        $this->printTestRunnerWarnings($result);
    }
    if ($this->displayPhpunitDeprecations) {
        $this->printTestRunnerDeprecations($result);
    }
    if ($this->displayTestsWithErrors) {
        $this->printTestsWithErrors($result);
    }
    if ($this->displayTestsWithFailedAssertions) {
        $this->printTestsWithFailedAssertions($result);
    }
    if ($this->displayPhpunitWarnings) {
        $this->printDetailsOnTestsThatTriggeredPhpunitWarnings($result);
    }
    if ($this->displayPhpunitDeprecations) {
        $this->printDetailsOnTestsThatTriggeredPhpunitDeprecations($result);
    }
    if ($this->displayRiskyTests) {
        $this->printRiskyTests($result);
    }
    if ($this->displayDetailsOnIncompleteTests) {
        $this->printIncompleteTests($result);
    }
    if ($this->displayDetailsOnSkippedTests) {
        $this->printSkippedTestSuites($result);
        $this->printSkippedTests($result);
    }
    if ($this->displayDetailsOnTestsThatTriggerErrors) {
        $this->printIssueList('error', $result->errors());
    }
    if ($this->displayDetailsOnTestsThatTriggerWarnings) {
        $this->printIssueList('PHP warning', $result->phpWarnings());
        $this->printIssueList('warning', $result->warnings());
    }
    if ($this->displayDetailsOnTestsThatTriggerNotices) {
        $this->printIssueList('PHP notice', $result->phpNotices());
        $this->printIssueList('notice', $result->notices());
    }
    if ($this->displayDetailsOnTestsThatTriggerDeprecations) {
        $this->printIssueList('PHP deprecation', $result->phpDeprecations());
        $this->printIssueList('deprecation', $result->deprecations());
    }
}

API Navigation

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