diff --git a/dev/SapphireTestReporter.php b/dev/SapphireTestReporter.php index 517f2799b..8b660aafa 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"; + } } /**