public function fetch() { if (!is_string($this->getEndpoint())) { throw new RuntimeException('An endpoint must be set'); } return $this->client->get($this->getApiBaseUrl() . $this->getEndpoint()); }
/** * @expectedException Exception */ public function testFetchFailureOnEmptyEndpoint() { $client = new FeedlyModel('SOMETOKEN'); $client->fetch(); }