split off pecl_http
[m6w6/ext-apfd] / tests / 001.phpt
diff --git a/tests/001.phpt b/tests/001.phpt
new file mode 100644 (file)
index 0000000..ed20f71
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+apfd
+--SKIPIF--
+<?php
+extension_loaded("apfd") or die("skip need apfd support\n");
+?>
+--PUT--
+Content-Type: application/x-www-form-urlencoded
+foo=bar&bar=foo
+--FILE--
+<?php
+
+var_dump($_POST);
+
+?>
+--EXPECT--
+array(2) {
+  ["foo"]=>
+  string(3) "bar"
+  ["bar"]=>
+  string(3) "foo"
+}