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); }
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); }