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(); }
public function testNonStringGlobalApiKeyFail() { $this->setExpectedException('InvalidArgumentException'); Sift::setApiKey(42); new SiftClient(); }
public static function setAccountId($account_id) { self::$account_id = $account_id; }
public function testInvalidOptToConstructor() { $this->setExpectedException('InvalidArgumentException'); Sift::setApiKey('some_key'); new SiftClient(array('apiKey' => 'typos')); }
public static function setPartnerId($partnerId) { self::$partnerId = $partnerId; }