sebastianbergmann/phpunit-mock-objects — pull request #191 by egeloen (2014-08-18 20:38:19+00:00)
Title: [Matcher] Fix multiple verify

The verify method is called multiple times when there are parameters (one at the invocation time and one after the test is completed). The problem is the mock parameters can be updated during the test and so, make the last verify failing whereas the assertion has been already verified during the invocation. So, this PR introduces `isVerified` on the matcher to detects if it has already verified and then, disable further verification.

Not sure it it is the way to go and covers all use cases (but it fixes mine). Feedbacks are really welcome especially on how I can add tests for it.