Permalink
Browse files

Use PHPUnit_Framework_TestFailure::exceptionToString if invocation ex…

…pectations fail

Primarily to display a diff of the mismatching parameters
  • Loading branch information...
1 parent e8af681 commit 813c9faddfd1d727aebda5ba4fbf9c6bef8537bf @fabian fabian committed Nov 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 PHPUnit/Framework/MockObject/Matcher.php
@@ -300,7 +300,7 @@ public function verify()
$this->methodNameMatcher->toString(),
$this->invocationMatcher->toString(),
- $e->getMessage()
+ PHPUnit_Framework_TestFailure::exceptionToString($e)
)
);
}

0 comments on commit 813c9fa

Please sign in to comment.