public function PHPUnit_TextUI_ResultPrinter::endTest

A test ended.

Parameters

PHPUnit_Framework_Test $test:

float $time:

Overrides PHPUnit_Framework_TestListener::endTest

File

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

Class

PHPUnit_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.

Code

public function endTest(PHPUnit_Framework_Test $test, $time) {
  if (!$this->lastTestFailed) {
    $this
      ->writeProgress('.');
  }
  if ($test instanceof PHPUnit_Framework_TestCase) {
    $this->numAssertions += $test
      ->getNumAssertions();
  }
  else {
    if ($test instanceof PHPUnit_Extensions_PhptTestCase) {
      $this->numAssertions++;
    }
  }
  $this->lastTestFailed = FALSE;
  if ($test instanceof PHPUnit_Framework_TestCase) {
    if (!$test
      ->hasPerformedExpectationsOnOutput()) {
      $this
        ->write($test
        ->getActualOutput());
    }
  }
}