Skip to content
Browse files

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

Also, switches to a constant instead of hardcoding the value.
  • Loading branch information...
1 parent 069dbfa commit d0153f32cf91928eaeb57ef13b5bb42d825cb28d @simonwelsh simonwelsh committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 dev/CliTestReporter.php
View
4 dev/CliTestReporter.php
@@ -73,13 +73,13 @@ public function endTest( PHPUnit_Framework_Test $test, $time) {
$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) {

0 comments on commit d0153f3

Please sign in to comment.
Something went wrong with that request. Please try again.