public function invoke($mock, $method, array $arguments, array &$argumentReference) { if ($this->mockInfo->isObjectFrozen()) { $result = new Phake_CallRecorder_VerifierResult(false, array(), 'This object has been frozen.'); Phake::getClient()->processVerifierResult($result); } }
public function testSettingPHPUnitClientByString() { $original_client = Phake::getClient(); Phake::setClient(Phake::CLIENT_PHPUNIT); $this->assertInstanceOf('Phake_Client_PHPUnit', Phake::getClient()); Phake::setClient($original_client); }