Don't print OK if a test fails
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 18 Jun 2011 19:06:45 +0000 (15:06 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 18 Jun 2011 19:06:45 +0000 (15:06 -0400)
testing/test_listener.php

index e9a94bfa0c43dbf7f6dac587076c4d6f39f25c7a..aa07973adc8879b9f4770ed2f95f061369effed6 100644 (file)
@@ -174,7 +174,7 @@ class TestListener extends \PHPUnit_Util_Printer implements \PHPUnit_Framework_T
         $name = $test->ToString();
         if (in_array($name, $this->skipped) || in_array($name, $this->incomplete)) {
             $this->_Print('[    ABORT ]', $name . ' (' . $this->_Round($time) . ' ms)', self::COLOR_CYAN);
-        } else {   
+        } else if (!in_array($name, $this->failing)) {
             $this->_Print('[       OK ]', $name . ' (' . $this->_Round($time) . ' ms)', self::COLOR_GREEN);
         }
     }