public function testApiCallWithNoApiKeyThrowsException() { $this->setExpectedException('Dyn\\MessageManagement\\Api\\Exception\\MissingOrInvalidApiKeyException'); $client = new Client(); $client->get('/foo'); }