public function testReset() { $this->info->freezeObject(); $this->info->resetInfo(); $this->assertFalse($this->info->isObjectFrozen()); Phake::verify($this->mapper)->removeAllAnswers(); Phake::verify($this->recorder)->removeAllCalls(); }
/** * Freezes the given $mock and notifies the given $client * * @param Phake_Mock_Info $mockInfo * @param Phake_Client_IClient $client */ public function freeze(Phake_Mock_Info $mockInfo, Phake_Client_IClient $client) { $client->processObjectFreeze(); $mockInfo->freezeObject(); }