projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
77b24e0
)
- update
author
Michael Wallner
<mike@php.net>
Tue, 14 Jun 2005 19:21:22 +0000
(19:21 +0000)
committer
Michael Wallner
<mike@php.net>
Tue, 14 Jun 2005 19:21:22 +0000
(19:21 +0000)
tests/HttpRequestPool_001.phpt
patch
|
blob
|
history
diff --git
a/tests/HttpRequestPool_001.phpt
b/tests/HttpRequestPool_001.phpt
index d68330f888383d4c211b1fdbbf1d4ff01033504e..b3a035b8389d794857e64e8c5c968ad45b95553a 100644
(file)
--- a/
tests/HttpRequestPool_001.phpt
+++ b/
tests/HttpRequestPool_001.phpt
@@
-18,13
+18,17
@@
foreach ($urls as $url) {
}
$pool->send();
foreach ($reqs as $req) {
}
$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);
}
$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";
?>
$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
http://www.php.net/=200:200
http://pear.php.net/=200:200
http://pecl.php.net/=200:200
+Catched
Done
Done