4 <?php include "skipif.inc"; ?>
6 Content-Type: test/something
16 use http\env\Request as HttpEnvRequest;
18 $m = new HttpEnvRequest();
22 echo "Message->toString\n";
25 echo "Body->toString\n";
26 var_dump((string)$m->getBody());
29 var_dump(file_get_contents("php://input"));
38 object(http\Message\Body)#%d (0) {
40 ["requestMethod":protected]=>
42 ["requestUrl":protected]=>
44 ["responseStatus":protected]=>
46 ["responseCode":protected]=>
48 ["httpVersion":protected]=>
50 ["headers":protected]=>
57 string(14) "test/something"
61 ["parentMessage":protected]=>
64 object(http\QueryString)#2 (1) {
65 ["queryArray":"http\QueryString":private]=>
70 object(http\QueryString)#3 (1) {
71 ["queryArray":"http\QueryString":private]=>
83 Content-Type: test/something%a