From: Michael Wallner Date: Thu, 1 Dec 2005 16:59:25 +0000 (+0000) Subject: - add test X-Git-Tag: RELEASE_0_20_0~55 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=9cffeb53e0c4b03192092d2f58965bb35f599cab - add test --- 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 +