Permalink
Browse files

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

  • Loading branch information...
1 parent 5a157a6 commit 0bdfc0c515da0262566dff3fd00ed1915b7197ca @sminnee sminnee committed Dec 17, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 dev/SapphireTestReporter.php
@@ -227,6 +227,10 @@ public function endTest( PHPUnit_Framework_Test $test, $time) {
$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";
+ }
}
/**

0 comments on commit 0bdfc0c

Please sign in to comment.