diff options
author | Jamie Matthews <[email protected]> | 2010-09-20 20:52:59 +0100 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-09-20 20:52:59 +0100 |
commit | ef54f78dfc7aa317dc210a49c39f6e9e5b695e02 (patch) | |
tree | 8207ebcd0bcdbb9c64540f5e040c7d36445368a1 | |
parent | a79dcefaf5eaa7743e8f655f658d5c3c591882bb (diff) |
Unspecified terminal colours now printed in default colour rather than black in test runner
-rw-r--r-- | test/test_classes.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_classes.php b/test/test_classes.php index c36e1bd..3a61773 100644 --- a/test/test_classes.php +++ b/test/test_classes.php @@ -100,6 +100,7 @@ 'BLACK' => "30", 'RED' => "31", 'GREEN' => "32", + 'DEFAULT' => "00", ); /** @@ -118,7 +119,7 @@ * Colouring code loosely based on * http://www.zend.com//code/codex.php?ozid=1112&single=1 */ - private static function format_line($line, $colour='BLACK') { + private static function format_line($line, $colour='DEFAULT') { if (isset($_SERVER['HTTP_USER_AGENT'])) { $colour = strtolower($colour); return "<p style=\"color: $colour;\">$line</p>\n"; |