- fix builds and tests without libcurl linked in
[m6w6/ext-http] / tests / HttpRequest_002.phpt
index e2e9672081d0fe1871076b4da9eb0c17bcd1d6cb..f6f0f7439e6f5797d1fb5a7742152e2577e93c92 100644 (file)
@@ -4,10 +4,12 @@ HttpRequest GET/POST
 <?php
 include 'skip.inc';
 checkver(5);
-checkurl('http://www.google.com');
+checkcls('HttpRequest');
+checkurl('www.google.com');
 ?>
 --FILE--
 <?php
+echo "-TEST\n";
 $r = new HttpRequest('http://www.google.com', HTTP_GET);
 var_dump($r->send());
 print_r($r->getResponseInfo());
@@ -19,9 +21,7 @@ var_dump($r->getResponseMessage()->getResponseCode());
 var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
 bool(true)
 Array
 (
@@ -47,9 +47,9 @@ Array
     [content_length_upload] => %d
     [content_type] => %s
     [httpauth_avail] => %d
-    [proxyauth_avail] => %d
-    [num_connects] => %d
+    [proxyauth_avail] => %s
 )
 int(501)
 int(501)
 bool(true)
+