Write the test before ending it, so it still exists.

Also, switches to a constant instead of hardcoding the value.
This commit is contained in:
Simon Welsh 2012-09-19 21:41:34 +12:00
parent 069dbfa69a
commit d0153f32cf

View File

@ -73,13 +73,13 @@ class CliTestReporter extends SapphireTestReporter {
$colCount++;
if($colCount % 80 == 0) echo " - $colCount\n";
parent::endTest($test, $time);
$this->writeTest($this->currentTest);
parent::endTest($test, $time);
}
protected function writeTest($test) {
if ($test['status'] != 1) {
if ($test['status'] != TEST_SUCCESS) {
$filteredTrace = array();
$ignoredClasses = array('TestRunner');
foreach($test['trace'] as $item) {