- added missing http_request() function stub
[m6w6/ext-http] / tests / HttpRequestPool_005.phpt
1 --TEST--
2 HttpRequestPool exception
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkmin(5);
7 checkcls('HttpRequestPool');
8 ?>
9 --FILE--
10 <?php
11 echo "-TEST\n";
12
13 $p = new HttpRequestPool(new HttpRequest('http://_____'));
14 try {
15 $p->send();
16 } catch (HttpRequestPoolException $x) {
17 var_dump(count($x->exceptionStack));
18 }
19 $p = new HttpRequestPool(new HttpRequest('http://_____'), new HttpRequest('http://_____'));
20 try {
21 $p->send();
22 } catch (HttpRequestPoolException $x) {
23 var_dump(count($x->exceptionStack));
24 }
25 echo "Done\n";
26 ?>
27 --EXPECTF--
28 %sTEST
29 int(2)
30 int(4)
31 Done
32