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 5a157a6365
commit 0bdfc0c515

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