add json_post test
authorMichael Wallner <mike@php.net>
Fri, 24 Sep 2021 14:07:47 +0000 (16:07 +0200)
committerMichael Wallner <mike@php.net>
Fri, 24 Sep 2021 14:07:47 +0000 (16:07 +0200)
tests/json_post001.phpt [new file with mode: 0644]

diff --git a/tests/json_post001.phpt b/tests/json_post001.phpt
new file mode 100644 (file)
index 0000000..6342bf4
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+apfd - json_post PUT
+--EXTENSIONS--
+apfd
+json_post
+--PUT--
+Content-type: application/json
+
+{"test": "json_post"}
+--FILE--
+TEST
+<?php
+var_dump([$_SERVER["REQUEST_METHOD"] => $_POST]);
+?>
+DONE
+--EXPECT--
+TEST
+array(1) {
+  ["PUT"]=>
+  array(1) {
+    ["test"]=>
+    string(9) "json_post"
+  }
+}
+DONE