X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fexceptions.phpt;h=fdda3f3b35edf8ddb3fbeb1662d70cd8a28730c8;hp=48b9149faae57e30c56c650a28b25f40a490ef27;hb=refs%2Fheads%2Fv1.7.x;hpb=649aada485583ccac67928e0700cb5f1b963f4e8 diff --git a/tests/exceptions.phpt b/tests/exceptions.phpt index 48b9149..fdda3f3 100644 --- a/tests/exceptions.phpt +++ b/tests/exceptions.phpt @@ -3,7 +3,7 @@ exceptions --SKIPIF-- --FILE-- $c) { printf("%2d: %s\n", $i, get_class($x)); } } -if (http_support(HTTP_SUPPORT_REQUESTS)) { - try { - $tmp = http_get(null); - } catch (HttpRequestException $x) { - printf("%s (%d)\n", $x->getMessage(), $x->getCode()); - } -} else { - echo "URL using bad/illegal format or missing URL; ((null)) (8)\n"; -} echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST 1: HttpRuntimeException 2: HttpInvalidParamException 3: HttpHeaderException @@ -59,5 +50,4 @@ echo "Done\n"; 10: HttpSocketException 11: HttpResponseException 12: HttpUrlException -URL using bad/illegal format or missing URL; ((null)) (8) Done