<file role="test" name="encstream008.phpt"/>
<file role="test" name="encstream009.phpt"/>
<file role="test" name="envrequestbody001.phpt"/>
- <file role="test" name="envrequestbody002.phpt"/>
- <file role="test" name="envrequestbody003.phpt"/>
<file role="test" name="envrequestcookie001.phpt"/>
<file role="test" name="envrequestfiles001.phpt"/>
<file role="test" name="envrequestfiles002.phpt"/>
<file role="test" name="envrequestform.phpt"/>
<file role="test" name="envrequestheader001.phpt"/>
- <file role="test" name="envrequestjson001.phpt"/>
- <file role="test" name="envrequestjson002.phpt"/>
<file role="test" name="envrequestquery.phpt"/>
<file role="test" name="envresponse001.phpt"/>
<file role="test" name="envresponse002.phpt"/>
+++ /dev/null
---TEST--
-env request body
---SKIPIF--
-<?php include "skipif.inc"; ?>
---PUT--
-Content-Type: multipart/form-data;boundary=123
---123
-Content-Disposition: form-data; name="foo"
-
-bar
---123
-Content-Disposition: form-data; name="baz"
-
-buh
---123
-Content-Disposition: form-data; name="up"; filename="up.txt"
-
-foo=bar&baz=buh
---123--
---FILE--
-<?php
-var_dump($_POST);
-var_dump($_FILES);
-?>
-DONE
---EXPECTF--
-array(2) {
- ["foo"]=>
- string(3) "bar"
- ["baz"]=>
- string(3) "buh"
-}
-array(1) {
- ["up"]=>
- array(5) {
- ["name"]=>
- string(6) "up.txt"
- ["type"]=>
- string(0) ""
- ["tmp_name"]=>
- string(%d) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(15)
- }
-}
-DONE
+++ /dev/null
---TEST--
-env request json
---SKIPIF--
-<?php
-include "skipif.inc";
-_ext("json");
-?>
---POST_RAW--
-Content-Type: application/json
-
-{"foo": "bar", "a": [1,2,3]}
---FILE--
-<?php
-echo "Test\n";
-print_r($_POST);
-?>
-Done
---EXPECT--
-Test
-Array
-(
- [foo] => bar
- [a] => Array
- (
- [0] => 1
- [1] => 2
- [2] => 3
- )
-
-)
-Done
-
+++ /dev/null
---TEST--
-env request json
---SKIPIF--
-<?php
-include "skipif.inc";
-_ext("json");
-?>
---PUT--
-Content-Type: application/json
-
-{"foo": "bar", "a": [1,2,3]}
---FILE--
-<?php
-echo "Test\n";
-print_r($_POST);
-?>
-Done
---EXPECT--
-Test
-Array
-(
- [foo] => bar
- [a] => Array
- (
- [0] => 1
- [1] => 2
- [2] => 3
- )
-
-)
-Done
-