public function __construct($key) { parent::__construct($key); // 5 seconds is too low for admin operations like full_zone_set $this->setCurlOption(CURLOPT_TIMEOUT, 20); }
public function testHttpDeleteMethodSet() { $api = new Api('*****@*****.**', 'Auth Key'); $result = $api->delete('test'); $this->assertEquals("delete", $result['method']); }
public function testInvalidAuthenticationWithInvalidParameters() { self::setExpectedException(AuthenticationException::class); $api = new Api('foo.domain.tld', 'KEY'); $api->get('/bogus', []); }