php tdd mocks and spies (practice)