branch off v1 as R_1_7
[m6w6/ext-http] / tests / exceptions.phpt
index 61a7620b1d1fdbeaa7a99317b99dce6dfc99e412..fdda3f3b35edf8ddb3fbeb1662d70cd8a28730c8 100644 (file)
@@ -3,7 +3,7 @@ exceptions
 --SKIPIF--
 <?php
 include 'skip.inc';
-checkmin(5);
+checkmin("5.2.5");
 ?>
 --FILE--
 <?php
@@ -34,19 +34,10 @@ 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; No URL set!\n ((null)) (8)\n";
-}
 echo "Done\n";
 ?>
 --EXPECTF--
-%sTEST
+%aTEST
  1: HttpRuntimeException
  2: HttpInvalidParamException
  3: HttpHeaderException
@@ -59,6 +50,4 @@ echo "Done\n";
 10: HttpSocketException
 11: HttpResponseException
 12: HttpUrlException
-URL using bad/illegal format or missing URL; No URL set!
- ((null)) (8)
 Done