/** * Tests validating calls to __call */ public function testVerificationOfCall() { $mock = Phake::mock('PhakeTest_MagicClass'); $mock->foo(); Phake::verifyCallMethodWith(Phake::anyParameters())->isCalledOn($mock); }