-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a standard for mocking dependencies #395
Comments
so your proposal would be to remove Prophecy and use phpunit exclusively? |
Removing it is not possible. Just don't use Prophecy for the reasons I've stated before. |
It could be a solution to use PHPUnit built-in instead of Prophecy. |
AFAIK that's not a bug in Prophecy but the desired behaviour. As a matter of fact, PHPSpec - wich uses only Prophecy as mocking library - is not affected because I suspect, internally it handles checks on double's method invokation differently. The issue is in the trait and how PHPUnit handle (or, in this case, don't) these scenarios. |
ok, so I think that use PHPUnit built-in is the best way at the moment to mock dependencies. |
ok guys! Thanks so much for the fruitful discussion! 🚀 |
As per #393 (comment)
I would suggest to stick, for the moment, with PHPUnit built in library.
Two main reasons
The text was updated successfully, but these errors were encountered: