Is this possible to avoid mocking in phpunit?
My concept is to: - write unit tests to test smaller parts - when it comes to do a integration/functional test then it's possible to inject a null object class using the dependency injection (so it's good to have everything interfaced). But integration tests could be separated from unit tests.
The reason why I don't like the mocking is that I see that its underused in every test, it's totally not readable. I was thinking about separation on unit testing and integration testing.
Could this in most cases be alternative to mocking, or is the mocking not replaceable at all? What's the best practice?