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
As of 20b0b21, PHPUnit triggers a warning when a partial mock is created with a non-existing method. While this behavior looks reasonable per se, it breaks the technique of mocking callables which is not natively supported by PHPUnit:
While I'm not proposing any specific solution to the problem, I'd like the developers to be aware of it. Escalating this warning to a failure in a future PHPUnit version will break existing tests without a known way to rework them.
The text was updated successfully, but these errors were encountered:
As of 20b0b21, PHPUnit triggers a warning when a partial mock is created with a non-existing method. While this behavior looks reasonable per se, it breaks the technique of mocking callables which is not natively supported by PHPUnit:
While I'm not proposing any specific solution to the problem, I'd like the developers to be aware of it. Escalating this warning to a failure in a future PHPUnit version will break existing tests without a known way to rework them.
The text was updated successfully, but these errors were encountered: