Closed Olsm closed 6 years ago
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions.
I have the same problem and looking at #261 and #311, it seems to be only fixed for PHPUnit_Framework_MockObject_Matcher_Parameters not for PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters.
ConsecutiveParameters also checks all old invocations again on verify():
If any parameter changed since the original invocation the verification will fail.
I have the same issue as #261. This still occurs in PHPUnit version 6.5.5 and PHPUnit Mock Objects version 5.0.6 I noticed that in this issue you link a commit where this was fixed in version 5.0.5. Somehow I have this issue with version 5.0.6. Or did I do something incorrectly?
This issue is fixed with the workaround of Kherge https://github.com/sebastianbergmann/phpunit-mock-objects/issues/261#issuecomment-209479226
In my withEquals method I change callback method name to callOnce. Result is like this: