- I thought I already fixed them
authorMichael Wallner <mike@php.net>
Mon, 25 Jul 2005 10:10:07 +0000 (10:10 +0000)
committerMichael Wallner <mike@php.net>
Mon, 25 Jul 2005 10:10:07 +0000 (10:10 +0000)
tests/HttpRequestPool_001.phpt
tests/HttpRequest_002.phpt
tests/HttpRequest_003.phpt

index 0b276b8b7c23e66d9dcb4aff75f6499ece8bba32..8c1b05be4ace27a2be8e39f1039fd1fd6d488a7e 100644 (file)
@@ -10,6 +10,7 @@ checkurl('pecl.php.net');
 ?>
 --FILE--
 <?php
+echo "-TEST\n";
 $pool = new HttpRequestPool(
     new HttpRequest('http://www.php.net/', HTTP_HEAD),
     new HttpRequest('http://pear.php.net/', HTTP_HEAD),
@@ -24,7 +25,8 @@ foreach ($pool as $req) {
 echo "Done\n";
 ?>
 --EXPECTF--
-%shttp://www.php.net/=200:200
+%sTEST
+http://www.php.net/=200:200
 http://pear.php.net/=200:200
 http://pecl.php.net/=200:200
 Done
index 3e95b4570029bb088a01d56b172e162d48d5e77e..9c9c49ac80004e12629040d9f8c6e94a5793115c 100644 (file)
@@ -8,6 +8,7 @@ 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 +20,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
 (
index 40d0ba92a53d7ed2745abdf34f56dc26a6d15a96..d432c4358c0334468427f0d2a51beab91acea254 100644 (file)
@@ -8,13 +8,12 @@ checkurl('arweb.info');
 ?>
 --FILE--
 <?php
+echo "-TEST\n";
 $r = new HttpRequest('https://ssl.arweb.info/iworks/data.txt');
 $r->send();
 var_dump($r->getResponseBody());
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
 string(10) "1234567890"