From d0153f32cf91928eaeb57ef13b5bb42d825cb28d Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Wed, 19 Sep 2012 21:41:34 +1200 Subject: [PATCH] Write the test before ending it, so it still exists. Also, switches to a constant instead of hardcoding the value. --- dev/CliTestReporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/CliTestReporter.php b/dev/CliTestReporter.php index d614cae20..adbd2473e 100644 --- a/dev/CliTestReporter.php +++ b/dev/CliTestReporter.php @@ -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) {