Ejemplo n.º 1
0
 public function testReset()
 {
     $this->info->freezeObject();
     $this->info->resetInfo();
     $this->assertFalse($this->info->isObjectFrozen());
     Phake::verify($this->mapper)->removeAllAnswers();
     Phake::verify($this->recorder)->removeAllCalls();
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }