sebastianbergmann/phpunit — pull request #699 by SamGiles (2012-10-24 14:17:59+00:00)
Title: Add value type information to InvalidArgumentException

This would be slightly more useful when debugging certain issues, I could've identified unexpected issues easier if I was presented with this extra information.

The new exception message would look similar to this:

Argument #1 (valueType#value) of class::function() must be a type.

Or

Argument #1 (No Value) of class::function() must be a type.