/** * Returns any unpublished changes made within the current session * * @return array|false|ApiResponse */ public function getChanges() { $result = $this->apiClient->get('/ZoneChanges/' . $this->getName()); if ($result && $result->isOk()) { if ($result->isComplete()) { return $result->data; } else { return $result; } } return false; }
public function testApiCallWithNoTokenThrowsException() { $this->setExpectedException('Dyn\\TrafficManagement\\Api\\Exception\\NotAuthenticatedException'); $client = new Client(); $client->get('/foo'); }