projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- Fix property handling
[m6w6/ext-http]
/
tests
/
get_request_data_001.phpt
diff --git
a/tests/get_request_data_001.phpt
b/tests/get_request_data_001.phpt
index 4b9437a8730c830bc654dc368df29b1beca3bab3..ad2ee5a82edff20cc9337236de1e90e867aa1506 100644
(file)
--- a/
tests/get_request_data_001.phpt
+++ b/
tests/get_request_data_001.phpt
@@
-12,9
+12,15
@@
a=b&c=d
--FILE--
<?php
echo "-TEST\n";
--FILE--
<?php
echo "-TEST\n";
-print_r(http_get_request_headers());
-var_dump(http_get_request_body());
+$h = http_get_request_headers();
+ksort($h);
+print_r($h);
+$b = http_get_request_body();
+if (php_sapi_name() == 'cli' || $b == 'a=b&c=d') {
+ echo "OK\n";
+}
?>
?>
+===DONE===
--EXPECTF--
%sTEST
Array
--EXPECTF--
%sTEST
Array
@@
-22,5
+28,5
@@
Array
[Accept-Charset] => iso-8859-1, *
[User-Agent] => Mozilla/5.0
)
[Accept-Charset] => iso-8859-1, *
[User-Agent] => Mozilla/5.0
)
-string(7) "a=b&c=d"
-
+OK
+===DONE===