Conversation
|
shouldn't most of them be migrated to |
The ones I changed here have all expectations, so I don't think we can migrate them to stubs. |
that's not true. Looking at the first test in the diff, it only configures |
Which one exactly? The first one I see is |
|
No. This does not expect the method to be called (which is why it is using |
|
I see. Nevertheless, using a mock like the ones we're using here doesn't trigger a deprecation in the most recent version of phpUnit, which is only triggered when you create a mock and use it directly. |
Removing useless
any()calls (which, by the way, are deprecated in the latest phpUnit version)