You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in version 1.9.3 this still works like a charm, but when upgrading to 1.10, the second call prediction fails with the message that it has not been called. with step debugging I can see that it actually is called (and the object at that time is the test-double) but somehow the call is not recorded. this only happens when this package is updated. all other packages stay the same and are latest stable, also no code is changed.
The text was updated successfully, but these errors were encountered:
this is surprising, since this really sounds not related to this package. But if you're 100% sure the problem occurs when only this package is updated, it surely is related 😅
could you assert that there are exactly the same instances of the test doubles in the test code and in the handler?
but where would they come from if they are not the same? don't know 🤷
I don't use prophecy so I can't really help here. I don't see why release 1.10.0 would breaks anything related to mocking
We have a messenger test, that predicts 2 calls using prophecy-phpunit.
these two calls are part of a message handler:
and the test goes something like this:
in version 1.9.3 this still works like a charm, but when upgrading to 1.10, the second call prediction fails with the message that it has not been called. with step debugging I can see that it actually is called (and the object at that time is the test-double) but somehow the call is not recorded. this only happens when this package is updated. all other packages stay the same and are latest stable, also no code is changed.
The text was updated successfully, but these errors were encountered: