projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* Added request options:
[m6w6/ext-http]
/
tests
/
exceptions.phpt
diff --git
a/tests/exceptions.phpt
b/tests/exceptions.phpt
index 43bb19041d32a10480bab698c9f2f514dc6f3985..fdda3f3b35edf8ddb3fbeb1662d70cd8a28730c8 100644
(file)
--- a/
tests/exceptions.phpt
+++ b/
tests/exceptions.phpt
@@
-3,7
+3,7
@@
exceptions
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(
5
);
+checkmin(
"5.2.5"
);
?>
--FILE--
<?php
?>
--FILE--
<?php
@@
-34,19
+34,10
@@
foreach ($e as $i => $c) {
printf("%2d: %s\n", $i, get_class($x));
}
}
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 (8)\n";
-}
echo "Done\n";
?>
--EXPECTF--
echo "Done\n";
?>
--EXPECTF--
-%
s
TEST
+%
a
TEST
1: HttpRuntimeException
2: HttpInvalidParamException
3: HttpHeaderException
1: HttpRuntimeException
2: HttpInvalidParamException
3: HttpHeaderException
@@
-59,5
+50,4
@@
echo "Done\n";
10: HttpSocketException
11: HttpResponseException
12: HttpUrlException
10: HttpSocketException
11: HttpResponseException
12: HttpUrlException
-URL using bad/illegal format or missing URL (8)
Done
Done