projects
/
m6w6
/
ext-apfd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
d7ee20a
)
add json_post test
author
Michael Wallner
<mike@php.net>
Fri, 24 Sep 2021 14:07:47 +0000
(16:07 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 24 Sep 2021 14:07:47 +0000
(16:07 +0200)
tests/json_post001.phpt
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/json_post001.phpt
b/tests/json_post001.phpt
new file mode 100644
(file)
index 0000000..
6342bf4
--- /dev/null
+++ b/
tests/json_post001.phpt
@@ -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