From: Michael Wallner Date: Wed, 15 Jun 2005 12:13:13 +0000 (+0000) Subject: - update X-Git-Tag: RELEASE_0_9_0~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b74974e437060c5ed430759a768114416c9f58b0;p=m6w6%2Fext-http - update --- diff --git a/tests/HttpRequestPool_001.phpt b/tests/HttpRequestPool_001.phpt index b3a035b..fd3853a 100644 --- a/tests/HttpRequestPool_001.phpt +++ b/tests/HttpRequestPool_001.phpt @@ -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