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