コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 public function testCustomEndpoint()
 {
     $this->config->useSSL = false;
     $this->config->endpoint = "localhost";
     $this->assertEquals($this->config->getNotifyEndpoint(), "http://localhost");
 }