/** * A test ended. * * @param PHPUnit2_Framework_Test $test * @access public */ public function endTest(PHPUnit2_Framework_Test $test) { $this->log->info(sprintf('Test "%s" ended.', $test->getName())); }
/** * A test ended. * * @param PHPUnit2_Framework_Test $test * @access public */ public function endTest(PHPUnit2_Framework_Test $test) { $prettifiedName = $this->prettifier->prettifyTestMethod($test->getName()); if (!isset($this->tests[$prettifiedName])) { if (!$this->testFailed) { $this->tests[$prettifiedName]['success'] = 1; $this->tests[$prettifiedName]['failure'] = 0; } else { $this->tests[$prettifiedName]['success'] = 0; $this->tests[$prettifiedName]['failure'] = 1; } } else { if (!$this->testFailed) { $this->tests[$prettifiedName]['success']++; } else { $this->tests[$prettifiedName]['failure']++; } } }
/** * A test ended. * * @param PHPUnit2_Framework_Test $test * @access public */ public function endTest(PHPUnit2_Framework_Test $test) { $this->testEnded($test->getName()); }
public function startTest(PHPUnit2_Framework_Test $test) { echo '<tr>'; $test->failed = false; echo '<td>' . $test->getName() . '</td>'; }
/** * A test started. * * @param PHPUnit2_Framework_Test $test * @access public */ public function startTest(PHPUnit2_Framework_Test $test) { $this->testStarted($test->getName()); }
/** * A test started. * * @param PHPUnit2_Framework_Test $test * @access public */ public function startTest(PHPUnit2_Framework_Test $test) { $testCase = $this->document->createElement('testcase'); $testCase->setAttribute('name', $test->getName()); $testCase->setAttribute('class', get_class($test)); $this->testSuites[$this->testSuiteLevel]->appendChild($testCase); $this->currentTestCase = $testCase; $this->testSuiteTests[$this->testSuiteLevel]++; $this->timer->start(); }
/** * Informs the result that a test was completed. * * @param PHPUnit2_Framework_Test * @access public */ public function endTest(PHPUnit2_Framework_Test $test) { if ($test instanceof PHPUnit2_Framework_TestCase) { $this->codeCoverageInformation[$test->getName()] = $test->getCodeCoverageInformation(); } foreach ($this->listeners as $listener) { $listener->endTest($test); } }