X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=tests%2Ferror004.phpt;fp=tests%2Ferror004.phpt;h=00fb76b9113db79ee2acf603373da946164f5a5d;hp=42cfa3408e24f21960e161de5ce182bf8b1d508e;hb=129e8b459061f9f4c76e3ee8a6baaef68c0bba41;hpb=ec734303777fdc01e36eff4fa7bac48edbc83cd3 diff --git a/tests/error004.phpt b/tests/error004.phpt index 42cfa34..00fb76b 100644 --- a/tests/error004.phpt +++ b/tests/error004.phpt @@ -1,22 +1,14 @@ --TEST-- -json_post with malformed JSON (https://github.com/m6w6/ext-json_post/issues/3) ---SKIPIF-- - +json_post with malformed JSON [exit] (https://github.com/m6w6/ext-json_post/issues/3) +--EXTENSIONS-- +json_post --INI-- -json_post.error_exit = true +json_post.onerror.exit = true --POST_RAW-- Content-Type: application/json -{ - "greeting": "Hello World -} ---FILE-- - -Done +{"a +--FILE_EXTERNAL-- +error.inc --EXPECTHEADERS-- --EXPECT--