mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Write the test before ending it, so it still exists.
Also, switches to a constant instead of hardcoding the value.
This commit is contained in:
parent
069dbfa69a
commit
d0153f32cf
@ -73,13 +73,13 @@ class CliTestReporter extends SapphireTestReporter {
|
||||
$colCount++;
|
||||
if($colCount % 80 == 0) echo " - $colCount\n";
|
||||
|
||||
parent::endTest($test, $time);
|
||||
$this->writeTest($this->currentTest);
|
||||
parent::endTest($test, $time);
|
||||
}
|
||||
|
||||
|
||||
protected function writeTest($test) {
|
||||
if ($test['status'] != 1) {
|
||||
if ($test['status'] != TEST_SUCCESS) {
|
||||
$filteredTrace = array();
|
||||
$ignoredClasses = array('TestRunner');
|
||||
foreach($test['trace'] as $item) {
|
||||
|
Loading…
Reference in New Issue
Block a user