--TEST-- PUT x-www-form-urlencoded --EXTENSIONS-- zend_test --SKIPIF-- --FILE-- $post, 'files' => $files, 'post_global' => $_POST, 'files_global' => $_FILES, ], JSON_PRETTY_PRINT); EOT; $tester = new FPM\Tester($cfg, $code); $tester->start(); $tester->expectLogStartNotices(); echo $tester ->request( method: 'PUT', headers: ['CONTENT_TYPE' => 'application/x-www-form-urlencoded'], stdin: 'foo=foo&bar[]=1&bar[]=2' ) ->getBody(); $tester->terminate(); $tester->expectLogTerminatingNotices(); $tester->close(); ?> --CLEAN-- --EXPECT-- { "post": { "foo": "foo", "bar": [ "1", "2" ] }, "files": [], "post_global": [ "post_global" ], "files_global": [ "files_global" ] }