public function PHPUnit_Framework_TestResult::endTest

Informs the result that a test was completed.

Parameters

PHPUnit_Framework_Test $test:

float $time:

1 call to PHPUnit_Framework_TestResult::endTest()
PHPUnit_Framework_TestResult::run in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php
Runs a TestCase.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php, line 375

Class

PHPUnit_Framework_TestResult
A TestResult collects the results of executing a test case.

Code

public function endTest(PHPUnit_Framework_Test $test, $time) {
  foreach ($this->listeners as $listener) {
    $listener
      ->endTest($test, $time);
  }
  if (!$this->lastTestFailed && $test instanceof PHPUnit_Framework_TestCase) {
    $class = get_class($test);
    $key = $class . '::' . $test
      ->getName();
    $this->passed[$key] = array(
      'result' => $test
        ->getResult(),
      'size' => PHPUnit_Util_Test::getSize($class, $test
        ->getName(FALSE)),
    );
    $this->time += $time;
  }
}