X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequestPool_001.phpt;fp=tests%2FHttpRequestPool_001.phpt;h=b3a035b8389d794857e64e8c5c968ad45b95553a;hp=d68330f888383d4c211b1fdbbf1d4ff01033504e;hb=4547a96a87b50ae94e403cfda049f1e2471af516;hpb=77b24e0e5f85b64a168a4ea4ce83db9339b1f31b diff --git a/tests/HttpRequestPool_001.phpt b/tests/HttpRequestPool_001.phpt index d68330f..b3a035b 100644 --- a/tests/HttpRequestPool_001.phpt +++ b/tests/HttpRequestPool_001.phpt @@ -18,13 +18,17 @@ foreach ($urls as $url) { } $pool->send(); foreach ($reqs as $req) { - echo $req->getResponseInfo('effective_url'), '=', + echo $req->getResponseInfo('effective_url'), '=', $req->getResponseCode(), ':', $req->getResponseMessage()->getResponseCode(), "\n"; $pool->detach($req); $pool->attach($req); } -$pool->send(); +try { + $pool->send(); +} catch (HttpException $ex) { + echo "Catched\n"; +} $pool->reset(); echo "Done\n"; ?> @@ -35,4 +39,5 @@ 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