diff --git a/dev/SapphireTestReporter.php b/dev/SapphireTestReporter.php index 6f0704ddf..f86722b45 100644 --- a/dev/SapphireTestReporter.php +++ b/dev/SapphireTestReporter.php @@ -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"; + } } /**