let DEV_2 be trunk
[m6w6/ext-http] / tests / envrequestbody002.phpt
diff --git a/tests/envrequestbody002.phpt b/tests/envrequestbody002.phpt
new file mode 100644 (file)
index 0000000..ec7d2d5
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+env request body
+--SKIPIF--
+<? include "skipif.inc";
+--PUT--
+Content-Type: application/x-www-form-urlencoded
+foo=bar&baz=buh
+--FILE--
+<?
+var_dump($_POST);
+?>
+DONE
+--EXPECT--
+array(2) {
+  ["foo"]=>
+  string(3) "bar"
+  ["baz"]=>
+  string(3) "buh"
+}
+DONE