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