コード例 #1
0
ファイル: Freezer.php プロジェクト: ngyuki/phake
 /**
  * Freezes the given $mock and notifies the given $client
  *
  * @param Phake_IMock          $mock
  * @param Phake_Client_IClient $client
  */
 public function freeze(Phake_IMock $mock, Phake_Client_IClient $client)
 {
     $client->processObjectFreeze();
     $this->mockReader->setIsObjectFrozen($mock, true);
 }
コード例 #2
0
ファイル: Freezer.php プロジェクト: eric-seekas/Phake
 /**
  * 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();
 }