X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=tests%2Ferror003.phpt;fp=tests%2Ferror003.phpt;h=93bcc9ba6bc05653a7b56ca58cbeb31e71deb180;hp=9147a12855e619399ef56e05ac6f61c31a8e7a80;hb=129e8b459061f9f4c76e3ee8a6baaef68c0bba41;hpb=ec734303777fdc01e36eff4fa7bac48edbc83cd3 diff --git a/tests/error003.phpt b/tests/error003.phpt index 9147a12..93bcc9b 100644 --- a/tests/error003.phpt +++ b/tests/error003.phpt @@ -1,25 +1,16 @@ --TEST-- -json_post with malformed JSON (https://github.com/m6w6/ext-json_post/issues/3) ---SKIPIF-- - +json_post with malformed JSON [warning] (https://github.com/m6w6/ext-json_post/issues/3) +--EXTENSIONS-- +json_post --INI-- -json_post.error_response = 444 -json_post.error_exit = true +json_post.onerror.warning = on --POST_RAW-- Content-Type: application/json -{ - "greeting": "Hello World -} ---FILE-- - -Done +{"a +--FILE_EXTERNAL-- +error.inc --EXPECTHEADERS-- -Status: 444 -X-JSON-Error-Code: 3 ---EXPECT-- +--EXPECTF-- +Warning: json_post: json_decode failed with error code: 3 in %s on line %s +DONE