Example #1
0
 public function testExtractorsOnInvalidString()
 {
     // Try with an empty string
     $response_str = '';
     $this->assertTrue(Response\Response::extractCode($response_str) === false);
     $this->assertTrue(Response\Response::extractMessage($response_str) === false);
     $this->assertTrue(Response\Response::extractVersion($response_str) === false);
     $this->assertTrue(Response\Response::extractBody($response_str) === '');
     $this->assertTrue(Response\Response::extractHeaders($response_str) === array());
 }