/** * Deliver everything on the queue to Bugsnag. * * @return void */ public function deliver() { if (empty($this->errorQueue)) { return; } // Post the request to bugsnag $this->postJSON($this->config->getNotifyEndpoint(), $this->toArray()); // Clear the error queue $this->errorQueue = array(); }
public function testCustomEndpoint() { $this->config->useSSL = false; $this->config->endpoint = "localhost"; $this->assertEquals($this->config->getNotifyEndpoint(), "http://localhost"); }