Example #1
0
File: Phake.php Project: kore/Phake
 /**
  * Sets the client currently being used by Phake.
  *
  * Accepts either an instance of a Phake_Client_IClient object OR a string identifying such an object.
  *
  * @param Phake_Client_IClient|string $client
  */
 public static function setClient($client)
 {
     if ($client instanceof Phake_Client_IClient) {
         self::$client = $client;
     } elseif ($client == self::CLIENT_PHPUNIT) {
         self::$client = new Phake_Client_PHPUnit();
     } else {
         self::$client = new Phake_Client_Default();
     }
 }