What is the way to avoid phpunit having to call the constructor for a mock object? Otherwise I would need a mock object as constructor argument, another one for that etc. The ap
Perhaps you need to create a stub to pass in as the constructor argument. Then you can break that chain of mock objects.