X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ferror004.phpt;fp=tests%2Ferror004.phpt;h=42cfa3408e24f21960e161de5ce182bf8b1d508e;hb=98b35c8f1a7c1c1bc818ee163048a76c81dd7141;hp=0000000000000000000000000000000000000000;hpb=8d2e34341cc92db8b41a3e6bcc81514673a756a8;p=m6w6%2Fext-json_post diff --git a/tests/error004.phpt b/tests/error004.phpt new file mode 100644 index 0000000..42cfa34 --- /dev/null +++ b/tests/error004.phpt @@ -0,0 +1,22 @@ +--TEST-- +json_post with malformed JSON (https://github.com/m6w6/ext-json_post/issues/3) +--SKIPIF-- + +--INI-- +json_post.error_exit = true +--POST_RAW-- +Content-Type: application/json + +{ + "greeting": "Hello World +} +--FILE-- + +Done +--EXPECTHEADERS-- +--EXPECT--