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