4 <?php include "skipif.inc"; ?>
6 Content-Type: test/something
13 always_populate_raw_post_data=-1
18 use http\env\Request as HttpEnvRequest;
20 $m = new HttpEnvRequest();
22 // travis' env headers have another order, wtf?
23 $h = $m->getHeaders();
29 echo "Message->toString\n";
32 echo "Body->toString\n";
33 var_dump((string)$m->getBody());
36 var_dump(file_get_contents("php://input"));
45 object(http\Message\Body)#3 (0) {
47 ["requestMethod":protected]=>
49 ["requestUrl":protected]=>
51 ["responseStatus":protected]=>
53 ["responseCode":protected]=>
55 ["httpVersion":protected]=>
57 ["headers":protected]=>
62 string(14) "test/something"
68 ["parentMessage":protected]=>
71 object(http\QueryString)#%d (1) {
72 ["queryArray":"http\QueryString":private]=>
77 object(http\QueryString)#%d (1) {
78 ["queryArray":"http\QueryString":private]=>
82 ["cookie":protected]=>
83 object(http\QueryString)#%d (1) {
84 ["queryArray":"http\QueryString":private]=>
97 Content-Type: test/something%a