X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=tests%2Ferror001.phpt;h=ea4d193f870910c9c54b1ace9215dbf5c92c5fee;hp=1a43334304b264b607d029d18ae86528b5c828dc;hb=129e8b459061f9f4c76e3ee8a6baaef68c0bba41;hpb=ec734303777fdc01e36eff4fa7bac48edbc83cd3 diff --git a/tests/error001.phpt b/tests/error001.phpt index 1a43334..ea4d193 100644 --- a/tests/error001.phpt +++ b/tests/error001.phpt @@ -1,28 +1,13 @@ --TEST-- -json_post with malformed JSON (https://github.com/m6w6/ext-json_post/issues/3) ---SKIPIF-- - ---INI-- -json_post.error_response = 400 +json_post with malformed JSON [default] (https://github.com/m6w6/ext-json_post/issues/3) +--EXTENSIONS-- +json_post --POST_RAW-- Content-Type: application/json -{ - "greeting": "Hello World -} ---FILE-- - -Done +{"a +--FILE_EXTERNAL-- +error.inc --EXPECTHEADERS-- -Status: 400 Bad Request -X-JSON-Error-Code: 3 ---EXPECTF-- -array(0) { -} -int(0) -Done +--EXPECT-- +DONE