endTest() public méthode

A test ended.
public endTest ( PHPUnit_Framework_Test $test, float $time )
$test PHPUnit_Framework_Test
$time float
Exemple #1
0
 public function endTest(\PHPUnit_Framework_Test $test, $time)
 {
     if ($test instanceof \Codeception\TestCase\Cept) {
         $this->currentTestCase->setAttribute('name', $test->toString());
     }
     return parent::endTest($test, $time);
 }
Exemple #2
0
 public function endTest(\PHPUnit_Framework_Test $test, $time)
 {
     if ($this->attachCurrentTestCase and $test instanceof Test) {
         $numAssertions = $test->getNumAssertions();
         $this->testSuiteAssertions[$this->testSuiteLevel] += $numAssertions;
         $this->currentTestCase->setAttribute('assertions', $numAssertions);
     }
     parent::endTest($test, $time);
 }
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     parent::endTest($test, $time);
     $this->logger->endTest($test, $time);
 }