Exemplo n.º 1
0
 public function invoke(Phake_IMock $mock, $method, array $arguments, array &$argumentReference)
 {
     if ($this->mockReader->isObjectFrozen($mock)) {
         $result = new Phake_CallRecorder_VerifierResult(false, array(), 'This object has been frozen.');
         Phake::getClient()->processVerifierResult($result);
     }
 }
Exemplo n.º 2
0
 public function testIsObjectFrozen()
 {
     $this->mock->__PHAKE_isFrozen = true;
     $this->assertTrue($this->reader->isObjectFrozen($this->mock));
 }