public function testGetErrorMessage()
 {
     $this->assertEquals("test_error", $this->originalServerResponse->getErrorMessage());
 }
Ejemplo n.º 2
0
 private function checkForApiErrors()
 {
     if ($this->originalServerResponse->getCode() < 200 || $this->originalServerResponse->getCode() >= 308) {
         $this->handleApiError($this->originalServerResponse->getCode(), $this->originalServerResponse->getBodyRaw());
     }
 }