Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public function testSettingPHPUnitClientByString()
 {
     $original_client = Phake::getClient();
     Phake::setClient(Phake::CLIENT_PHPUNIT);
     $this->assertInstanceOf('Phake_Client_PHPUnit', Phake::getClient());
     Phake::setClient($original_client);
 }