public function PHPUnit_TextUI_ResultPrinter::printResult

Parameters

PHPUnit_Framework_TestResult $result:

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php, line 150

Class

PHPUnit_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.

Code

public function printResult(PHPUnit_Framework_TestResult $result) {
  $this
    ->printHeader();
  if ($result
    ->errorCount() > 0) {
    $this
      ->printErrors($result);
  }
  if ($result
    ->failureCount() > 0) {
    if ($result
      ->errorCount() > 0) {
      print "\n--\n\n";
    }
    $this
      ->printFailures($result);
  }
  if ($this->verbose) {
    if ($result
      ->deprecatedFeaturesCount() > 0) {
      if ($result
        ->failureCount() > 0) {
        print "\n--\n\nDeprecated PHPUnit features are being used";
      }
      foreach ($result
        ->deprecatedFeatures() as $deprecatedFeature) {
        $this
          ->write($deprecatedFeature . "\n\n");
      }
    }
    if ($result
      ->notImplementedCount() > 0) {
      if ($result
        ->failureCount() > 0) {
        print "\n--\n\n";
      }
      $this
        ->printIncompletes($result);
    }
    if ($result
      ->skippedCount() > 0) {
      if ($result
        ->notImplementedCount() > 0) {
        print "\n--\n\n";
      }
      $this
        ->printSkipped($result);
    }
  }
  $this
    ->printFooter($result);
}