X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fexceptions.phpt;h=1febe33275e33ab9737d1a507c4fc217194fa6eb;hp=48b9149faae57e30c56c650a28b25f40a490ef27;hb=8e6cf53b544342e1eaf0ec4f530e32852120294a;hpb=649aada485583ccac67928e0700cb5f1b963f4e8 diff --git a/tests/exceptions.phpt b/tests/exceptions.phpt index 48b9149..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