Permalink
Browse files

Fix.

  • Loading branch information...
sebastianbergmann committed Nov 9, 2006
1 parent 6ea9276 commit ae92d1fb04f6dcb1f179edff34eb1136ee5c5e70
Showing with 3 additions and 2 deletions.
  1. +3 −2 PHPUnit/TextUI/ResultPrinter.php
@@ -218,8 +218,9 @@ protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect)
$string = '';
- if ($this->verbose ||
- $comparisonFailure instanceof PHPUnit_Framework_ComparisonFailure_String) {
+ if ($comparisonFailure !== NULL &&
+ ($this->verbose ||
+ $comparisonFailure instanceof PHPUnit_Framework_ComparisonFailure_String)) {
$string = $comparisonFailure->toString();
}

0 comments on commit ae92d1f

Please sign in to comment.