6342bf4cd4e6369808313773e3b2244c90249262
[m6w6/ext-apfd] / tests / json_post001.phpt
1 --TEST--
2 apfd - json_post PUT
3 --EXTENSIONS--
4 apfd
5 json_post
6 --PUT--
7 Content-type: application/json
8
9 {"test": "json_post"}
10 --FILE--
11 TEST
12 <?php
13 var_dump([$_SERVER["REQUEST_METHOD"] => $_POST]);
14 ?>
15 DONE
16 --EXPECT--
17 TEST
18 array(1) {
19 ["PUT"]=>
20 array(1) {
21 ["test"]=>
22 string(9) "json_post"
23 }
24 }
25 DONE