From: Craig S. <cra...@gm...> - 2007-10-13 09:39:37
|
Hi, I'm trying to Mock a class that implements it's methods using the __call function. So I'd like the code: Mock::generate('ProblemServer'); $server = new MockProblemServer(); $server->expectOnce('getByName'); The thing is, getByName is implemented using __call so simple test can't mock the method. Is there any way to do this? Many thanks, Craig |