From 6dd9bddc71bcdb2ebc6da79b1c42d28e703436d1 Mon Sep 17 00:00:00 2001 From: jhassine Date: Mon, 25 Sep 2006 07:10:37 +0000 Subject: [PATCH] If tests are run from command line uses text reporter instead of HTML. --- tests/run.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run.php b/tests/run.php index 6a4f4e124..220bee332 100644 --- a/tests/run.php +++ b/tests/run.php @@ -113,6 +113,9 @@ class MyReporter extends HtmlReporter { } } +if (TextReporter::inCli()) { + exit ($test->run(new TextReporter()) ? 0 : 1); +} $test->run(new MyReporter()); $output = ob_get_clean(); /**