test fixups from Remi
[m6w6/ext-http] / tests / bug69313.phpt
index 824918cb325fdb8055f4570ff3236262e0bb72c7..c84ef983261d39abcbc4765f42088f2fe117d555 100644 (file)
@@ -2,13 +2,13 @@
 Bug #69313 (http\Client doesn't send GET body)
 --SKIPIF--
 <?php
-include "./skipif.inc";
+include "skipif.inc";
 skip_client_test();
 ?>
 --FILE--
 <?php
 
-
+include "helper/dump.inc";
 include "helper/server.inc";
 
 echo "Test\n";
@@ -20,7 +20,7 @@ server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
        $client = new http\Client();
        $client->enqueue($request);
        $client->send();
-       echo $client->getResponse();
+       dump_message(null, $client->getResponse());
 });
 
 ?>
@@ -30,16 +30,17 @@ Done
 Test
 HTTP/1.1 200 OK
 Accept-Ranges: bytes
+Content-Length: %d
 Etag: "%s"
 X-Original-Transfer-Encoding: chunked
-Content-Length: %d
+X-Request-Content-Length: 3
 
 GET / HTTP/1.1
-User-Agent: %s
-Host: localhost:%d
 Accept: */*
-Content-Type: text/plain
 Content-Length: 3
+Content-Type: text/plain
+Host: localhost:%d
+User-Agent: %s
 X-Original-Content-Length: 3
 
 foo