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); } }
public function testIsObjectFrozen() { $this->mock->__PHAKE_isFrozen = true; $this->assertTrue($this->reader->isObjectFrozen($this->mock)); }