only try to get comparison failure for the appropriate object #726

Merged
merged 1 commit into from Jul 21, 2012

Conversation

Projects
None yet
2 participants
Member

dereuromark commented Jul 21, 2012

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.

One way to trigger the fatal error seems to be an empty test case:

No tests found in class "BoardCategoriesControllerTest"

@markstory markstory added a commit that referenced this pull request Jul 21, 2012

@markstory markstory Merge pull request #726 from dereuromark/2.3-html-reporter-fix
only try to get comparison failure for the appropriate object
f858ea3

@markstory markstory merged commit f858ea3 into cakephp:2.3 Jul 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment