If tests are run from command line uses text reporter instead of HTML.
This commit is contained in:
parent
4bb224a3fc
commit
6dd9bddc71
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue