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 order to enforce and clarify the usage of test doubles for everyone, I would like to know if you think it would be beneficial to implement a rule that raises an error when a mock is created without any assertions on being called (essentially making it a stub).
This rule would only be about using the correct terminology for test doubles. It should help to better understand what is going on in our test, and what is our intention.
Feature request
Hi !
In order to enforce and clarify the usage of test doubles for everyone, I would like to know if you think it would be beneficial to implement a rule that raises an error when a mock is created without any assertions on being called (essentially making it a stub).
This rule would only be about using the correct terminology for test doubles. It should help to better understand what is going on in our test, and what is our intention.
https://docs.phpunit.de/en/10.5/test-doubles.html
In example :
I can try to make a PR for this, but before working on it, I prefer to ask if you think it would be a good improvement.
The text was updated successfully, but these errors were encountered: