I’ve been toying around with a new PHP mocking library, AspectMock (built upon Go! AOP) that takes a different approach - one that doesn’t necessarily require you to resort to dependency injection.
I’ve only spent a matter of hours with this tool, but it just might change the way I structure my projects in the future. I guess we’ll see. Have a watch below and decide for yourself!