Seems PHP's Phake mocking library doesn't like mocking a class that implements an interface. This repo is a reduced test case to demonstrate this issue