Informs the result that a test was completed.
PHPUnit_Framework_Test $test:
float $time:
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;
}
}