- implement accessors to messages response status text
[m6w6/ext-http] / tests / HttpMessage_001.phpt
index 25adb8f1fee832df529998ce46796007cd033b23..c2fe79a33e6cb64c0cdbec2daeabb26d91ddf955 100644 (file)
@@ -13,7 +13,7 @@ $m = new HttpMessage(
        "Location: /anywhere\r\n".
        "HTTP/1.1 302\r\n".
        "Location: /somewhere\r\n".
-       "HTTP/1.1 206\r\n".
+       "HTTP/1.1 206 Partial content\r\n".
        "Content-Range: bytes=2-3\r\n".
        "Transfer-Encoding: chunked\r\n".
        "\r\n".
@@ -22,6 +22,8 @@ $m = new HttpMessage(
        "00"
 );
 
+var_dump($m->getResponseStatus());
+
 $x = $m->getParentMessage();
 $x = $m->getParentMessage();
 $x = $m->getParentMessage();
@@ -36,19 +38,20 @@ echo "Done\n";
 ?>
 --EXPECTF--
 %sTEST
+string(15) "Partial content"
 string(1) "X"
-string(174) "HTTP/1.1 301
+string(190) "HTTP/1.1 301
 Location: /anywhere
 HTTP/1.1 302
 Location: /somewhere
-HTTP/1.1 206
+HTTP/1.1 206 Partial content
 Content-Range: bytes=2-3
 X-Original-Transfer-Encoding: chunked
 Content-Length: 1
 
 X
 "
-string(103) "HTTP/1.1 206
+string(119) "HTTP/1.1 206 Partial content
 Content-Range: bytes=2-3
 X-Original-Transfer-Encoding: chunked
 Content-Length: 1