X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=inline;f=tests%2FHttpRequestPool_005.phpt;fp=tests%2FHttpRequestPool_005.phpt;h=182f662e6849f6958b5e9c27516ea9d75b77a664;hb=9cffeb53e0c4b03192092d2f58965bb35f599cab;hp=0000000000000000000000000000000000000000;hpb=f2d0dbf38d7b00455d3dfba8f2de087105ae0f35;p=m6w6%2Fext-http diff --git a/tests/HttpRequestPool_005.phpt b/tests/HttpRequestPool_005.phpt new file mode 100644 index 0000000..182f662 --- /dev/null +++ b/tests/HttpRequestPool_005.phpt @@ -0,0 +1,47 @@ +--TEST-- +HttpRequestPool exception +--SKIPIF-- + +--FILE-- +send(); +} catch (HttpRequestPoolException $x) { + var_dump(count($x->exceptionStack)); +} +$p = new HttpRequestPool(new HttpRequest('http://_____'), new HttpRequest('http://_____')); +try { + $p->send(); +} catch (HttpRequestPoolException $x) { + var_dump(count($x->exceptionStack)); +} + +try { + $p = new HttpRequestPool(new HttpRequest); +} catch (HttpRequestPoolException $x) { + var_dump(count($x->exceptionStack)); +} + +try { + $p = new HttpRequestPool(new HttpRequest, new HttpRequest); +} catch (HttpRequestPoolException $x) { + var_dump(count($x->exceptionStack)); +} + +echo "Done\n"; +?> +--EXPECTF-- +%sTEST +int(1) +int(2) +int(1) +int(2) +Done +