cakephp/cakephp — pull request #726 by dereuromark (2012-07-21 13:25:48+00:00)
Title: only try to get comparison failure for the appropriate object

avoid

`Fatal error: Call to undefined method PHPUnit_Framework_AssertionFailedError::getComparisonFailure() in ... on line 252`

the $failure object can actually be a `PHPUnit_Framework_AssertionFailedError` instead of Exception. The exception (which extends the error) contains the method, though.