From 45d30642b8c420e2d9ebdb60b66282c56d59a9cf Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 24 Sep 2021 16:07:47 +0200 Subject: [PATCH] add json_post test --- tests/json_post001.phpt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/json_post001.phpt diff --git a/tests/json_post001.phpt b/tests/json_post001.phpt new file mode 100644 index 0000000..6342bf4 --- /dev/null +++ b/tests/json_post001.phpt @@ -0,0 +1,25 @@ +--TEST-- +apfd - json_post PUT +--EXTENSIONS-- +apfd +json_post +--PUT-- +Content-type: application/json + +{"test": "json_post"} +--FILE-- +TEST + $_POST]); +?> +DONE +--EXPECT-- +TEST +array(1) { + ["PUT"]=> + array(1) { + ["test"]=> + string(9) "json_post" + } +} +DONE -- 2.30.2