If tests are run from command line uses text reporter instead of HTML.
This commit is contained in:
parent
4bb224a3fc
commit
6dd9bddc71
@ -113,6 +113,9 @@ class MyReporter extends HtmlReporter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (TextReporter::inCli()) {
|
||||||
|
exit ($test->run(new TextReporter()) ? 0 : 1);
|
||||||
|
}
|
||||||
$test->run(new MyReporter());
|
$test->run(new MyReporter());
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user