- another test
authorMichael Wallner <mike@php.net>
Sun, 24 Jul 2005 18:23:37 +0000 (18:23 +0000)
committerMichael Wallner <mike@php.net>
Sun, 24 Jul 2005 18:23:37 +0000 (18:23 +0000)
tests/get_request_data_001.phpt [new file with mode: 0644]

diff --git a/tests/get_request_data_001.phpt b/tests/get_request_data_001.phpt
new file mode 100644 (file)
index 0000000..4b9437a
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+get request data
+--SKIPIF--
+<?php
+include 'skip.inc';
+?>
+--ENV--
+HTTP_ACCEPT_CHARSET=iso-8859-1, *
+HTTP_USER_AGENT=Mozilla/5.0
+--POST--
+a=b&c=d
+--FILE--
+<?php
+echo "-TEST\n";
+print_r(http_get_request_headers());
+var_dump(http_get_request_body());
+?>
+--EXPECTF--
+%sTEST
+Array
+(
+    [Accept-Charset] => iso-8859-1, *
+    [User-Agent] => Mozilla/5.0
+)
+string(7) "a=b&c=d"
+