mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: On PHPUnit 3.6, show the output of tests.
This commit is contained in:
parent
5956ad82fc
commit
af22d0743a
@ -227,6 +227,10 @@ class SapphireTestReporter implements PHPUnit_Framework_TestListener {
|
||||
$this->currentTest['timeElapsed'] = $this->timer->timeElapsed();
|
||||
}
|
||||
array_push($this->currentSuite['tests'], $this->currentTest);
|
||||
if(method_exists($test, 'getActualOutput')) {
|
||||
$output = $test->getActualOutput();
|
||||
if($output) echo "\nOutput:\n$output";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user