Example #1
0
 public static function setApiKey($api_key)
 {
     self::$api_key = $api_key;
 }
 public function testNonStringGlobalPartnerIdFail()
 {
     $this->setExpectedException('InvalidArgumentException');
     Sift::setApiKey(SiftClientTest::$API_KEY);
     Sift::setPartnerId(42);
     new SiftClient();
 }
Example #3
0
 public function testNonStringGlobalApiKeyFail()
 {
     $this->setExpectedException('InvalidArgumentException');
     Sift::setApiKey(42);
     new SiftClient();
 }
Example #4
0
 public static function setAccountId($account_id)
 {
     self::$account_id = $account_id;
 }
Example #5
0
 public function testInvalidOptToConstructor()
 {
     $this->setExpectedException('InvalidArgumentException');
     Sift::setApiKey('some_key');
     new SiftClient(array('apiKey' => 'typos'));
 }
Example #6
0
 public static function setPartnerId($partnerId)
 {
     self::$partnerId = $partnerId;
 }