I'm crawling the web since a lot of time but I can't find any answer to my question. I started a new project, and I use Pimple to maanage DI. Of course I want to unit test my classes and I need a Mock for one. THe problem is that with classic DI method ( pass class to the constructor) It's easy to create a mock and pass it to the class.
But as I use Pimple I don't know how to do that as I don't pass every class I need in the object in the constructor. I pass a Pimple Container object.
So, how am I supposed to proceed when I want to use mocks ? I mean the best practices. I though about creating a specific pimple container with all my mocks and use it in unit testing instead of the real one, but I'm not sure there isn't an easy/better way to do that. THanks for your help