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