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(); /**