fix test
[m6w6/ext-apfd] / tests / json_post001.phpt
1 --TEST--
2 apfd - json_post PUT
3 --SKIPIF--
4 <?php
5 if (!extension_loaded("apfd") || !extension_loaded("json_post"))
6 die("skip need apfd and json_post support\n");
7 ?>
8 --PUT--
9 Content-type: application/json
10
11 {"test": "json_post"}
12 --FILE--
13 TEST
14 <?php
15 var_dump([$_SERVER["REQUEST_METHOD"] => $_POST]);
16 ?>
17 DONE
18 --EXPECT--
19 TEST
20 array(1) {
21 ["PUT"]=>
22 array(1) {
23 ["test"]=>
24 string(9) "json_post"
25 }
26 }
27 DONE