- fix a load of issues with inheritance and cloning
[m6w6/ext-http] / tests / HttpMessage_003.phpt
index 79d0dc66dc69e638f4f3c857798581d931e81056..8c416b9b906df9f99574aa6d219887a7812df2ab 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-HttpMessage implmenets Serializable, Countable
+HttpMessage implements Serializable, Countable
 --SKIPIF--
 <?php
 include 'skip.inc';
@@ -33,11 +33,12 @@ echo "Done\n";
 --EXPECTF--
 %sTEST
 int(3)
-string(109) "HTTP/1.1 301
+string(148) "HTTP/1.1 301
 Location: /anywhere
 HTTP/1.1 302
 Location: /somewhere
 HTTP/1.1 200
+X-Original-Transfer-Encoding: chunked
 Content-Length: 1
 
 X
@@ -45,23 +46,25 @@ X
 object(HttpMessage)#%d (%d) {
   ["type:protected"]=>
   int(2)
-  ["httpVersion:protected"]=>
-  float(1.1)
-  ["responseCode:protected"]=>
-  int(200)
-  ["responseStatus:protected"]=>
-  string(2) "Ok"
+  ["body:protected"]=>
+  string(0) ""
   ["requestMethod:protected"]=>
   string(0) ""
-  ["requestUri:protected"]=>
+  ["requestUrl:protected"]=>
   string(0) ""
+  ["responseStatus:protected"]=>
+  string(2) "Ok"
+  ["responseCode:protected"]=>
+  int(200)
+  ["httpVersion:protected"]=>
+  float(1.1)
   ["headers:protected"]=>
   array(1) {
     ["Server"]=>
     string(9) "Funky/1.0"
   }
-  ["body:protected"]=>
-  string(0) ""
+  ["parentMessage:protected"]=>
+  NULL
 }
 int(1)
 Done