X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fexceptions.phpt;h=1febe33275e33ab9737d1a507c4fc217194fa6eb;hp=8e9ea5d1cd458c03002778bfbaeb050663563008;hb=bcb27bf6556208cded77e37805852fc2585e8a9f;hpb=33b7c5dcd9cffebb8486cb57e04958e34bbfe662 diff --git a/tests/exceptions.phpt b/tests/exceptions.phpt index 8e9ea5d..1febe33 100644 --- a/tests/exceptions.phpt +++ b/tests/exceptions.phpt @@ -34,15 +34,6 @@ foreach ($e as $i => $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-- @@ -59,5 +50,4 @@ echo "Done\n"; 10: HttpSocketException 11: HttpResponseException 12: HttpUrlException -URL using bad/illegal format or missing URL ((null)) (8) Done