Exemplo n.º 1
0
 /**
  * Whether the line is an HTTP response status line.
  * @param string
  * @return bool
  */
 private function _isStatusLine($line)
 {
     try {
         Bringit_Header_ResponseStatusLine::fromString($line);
         return true;
     } catch (Bringit_Exception $e) {
         return false;
     }
 }
Exemplo n.º 2
0
 public function testBasicUsage()
 {
     $string = "HTTP/1.1 404 Not Found\r\n";
     $this->assertEqual(Bringit_Header_ResponseStatusLine::fromString($string)->__toString(), $string);
 }