X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fexceptions.phpt;h=1febe33275e33ab9737d1a507c4fc217194fa6eb;hp=af48fde1e705c39f445b5a25b227c6e27ad69ab4;hb=8e6cf53b544342e1eaf0ec4f530e32852120294a;hpb=a896cda2c56ae9525e8d99622841350a1fb73926 diff --git a/tests/exceptions.phpt b/tests/exceptions.phpt index af48fde..1febe33 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)); } } -try { - $tmp = http_get(null); -} catch (HttpRequestException $x) { - printf("%s (%d)\n", $x->getMessage(), $x->getCode()); -} echo "Done\n"; ?> --EXPECTF-- @@ -55,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