MINOR: On PHPUnit 3.6, show the output of tests.

This commit is contained in:
Sam Minnee 2011-12-17 16:31:30 +13:00
parent 5956ad82fc
commit af22d0743a

View File

@ -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";
}
}
/**