From ef54f78dfc7aa317dc210a49c39f6e9e5b695e02 Mon Sep 17 00:00:00 2001 From: Jamie Matthews Date: Mon, 20 Sep 2010 20:52:59 +0100 Subject: Unspecified terminal colours now printed in default colour rather than black in test runner --- test/test_classes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 "

$line

\n"; -- cgit v1.2.3