- update
authorMichael Wallner <mike@php.net>
Wed, 15 Jun 2005 12:13:13 +0000 (12:13 +0000)
committerMichael Wallner <mike@php.net>
Wed, 15 Jun 2005 12:13:13 +0000 (12:13 +0000)
tests/HttpRequestPool_001.phpt

index b3a035b8389d794857e64e8c5c968ad45b95553a..fd3853ad0556dbaea5c04d19a5beba3f1dbd59f5 100644 (file)
@@ -23,13 +23,20 @@ foreach ($reqs as $req) {
         $req->getResponseMessage()->getResponseCode(), "\n";
     $pool->detach($req);
     $pool->attach($req);
+    $pool->detach($req);
+    $pool->attach($req);
+    $pool->detach($req);
+    $pool->attach($req);
+    $pool->detach($req);
+    $pool->attach($req);
+    $req->getResponseMessage()->getResponseCode();
+    $req->getResponseMessage()->getResponseCode();
+    $req->getResponseMessage()->getResponseCode();
+    $req->getResponseMessage()->getResponseCode();
 }
-try {
-       $pool->send();
-} catch (HttpException $ex) {
-       echo "Catched\n";
-}
+$pool->send();
 $pool->reset();
+$pool->attach($req);
 echo "Done\n";
 ?>
 --EXPECTF--
@@ -39,5 +46,4 @@ X-Powered-By: PHP/%s
 http://www.php.net/=200:200
 http://pear.php.net/=200:200
 http://pecl.php.net/=200:200
-Catched
 Done