public function testHttpGetMethodSet() { $api = new Api('*****@*****.**', 'Auth Key'); $result = $api->get('test'); $this->assertEquals("get", $result['method']); }
public function testInvalidAuthenticationWithInvalidParameters() { self::setExpectedException(AuthenticationException::class); $api = new Api('foo.domain.tld', 'KEY'); $api->get('/bogus', []); }