X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=tests%2Fapplication.phpt;fp=tests%2Fapplication.phpt;h=1331be455793d6d3b9dd5dc5dd8592cc66456b29;hp=0000000000000000000000000000000000000000;hb=27c5605043a78052ef303a573c5b93858ec4d0f4;hpb=9443267ae6573fcf03939f7226b6b7ed6d5ae59a diff --git a/tests/application.phpt b/tests/application.phpt new file mode 100644 index 0000000..1331be4 --- /dev/null +++ b/tests/application.phpt @@ -0,0 +1,24 @@ +--TEST-- +json_post with Content-Type: application/json +--SKIPIF-- + +--POST_RAW-- +Content-Type: application/json + +{ + "greeting": "Hello World" +} +--FILE-- + +Done +--EXPECTF-- +array(1) { + ["greeting"]=> + string(11) "Hello World" +} +int(0) +Done