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(); }
public function testInvalidOptToConstructor() { $this->setExpectedException('InvalidArgumentException'); Sift::setApiKey('some_key'); new SiftClient(array('apiKey' => 'typos')); }