Skip to content

Commit

Permalink
- Merge [2200].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 18, 2008
1 parent 9a8e397 commit 7a1c690
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PHPUnit/Framework/TestFailure.php
Expand Up @@ -171,13 +171,17 @@ public static function exceptionToString(Exception $e, $verbose = FALSE)
}
}
} else {
$buffer = $e->toString();
$buffer = $e->toString();
$description = $e->getDescription();
$equal = $buffer == $description;

if (!empty($buffer)) {
$buffer .= "\n";
}

$buffer .= $e->getDescription() . "\n";
if (!$equal) {
$buffer .= $e->getDescription() . "\n";
}
}
}

Expand Down

0 comments on commit 7a1c690

Please sign in to comment.