X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fexceptions.phpt;h=c99461fbddeecb789ac8b65317909cbc998a95b0;hb=23d7e7f276852b4ed1bd2829fcca38c6db854563;hp=aef60595ab0108c19fccad565f094159133fd97c;hpb=dfe2dbf042d42f83255b6ff46c2210bcd57ca586;p=m6w6%2Fext-http diff --git a/tests/exceptions.phpt b/tests/exceptions.phpt index aef6059..c99461f 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 "Could not perform request: URL using bad/illegal format or missing URL (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 -Could not perform request: URL using bad/illegal format or missing URL (8) Done