sebastianbergmann/phpunit-mock-objects — pull request #108 by fabian (2012-11-15 22:02:57+00:00)
Title: Use PHPUnit_Framework_TestFailure::exceptionToString if invocation expectations fail

Primarily to display a diff of the mismatching parameters.

If a larger array argument doesn't match the expectation, additional debugging is needed to see passed value.

With this change you get a nice diff for the mismatching argument:

```
Expectation failed for method name is equal to when invoked 1 time(s).
Parameter 0 for invocation SomeClass::right(Array (...)) does not match expected value.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 0 => 'first'
- 1 => 'second'
+ 0 => 'second'
)
```