fix test
[m6w6/ext-http] / tests / envrequestjson001.phpt
1 --TEST--
2 env request json
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 _ext("json");
7 ?>
8 --POST_RAW--
9 Content-Type: application/json
10
11 {"foo": "bar", "a": [1,2,3]}
12 --FILE--
13 <?php
14 echo "Test\n";
15 print_r($_POST);
16 ?>
17 Done
18 --EXPECT--
19 Test
20 Array
21 (
22 [foo] => bar
23 [a] => Array
24 (
25 [0] => 1
26 [1] => 2
27 [2] => 3
28 )
29
30 )
31 Done
32