JSON_POST_ERROR, json_post.onerror.* INI, warning
[m6w6/ext-json_post] / tests / error006.phpt
diff --git a/tests/error006.phpt b/tests/error006.phpt
new file mode 100644 (file)
index 0000000..aef634a
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+json_post with malformed JSON [json_throw] (https://github.com/m6w6/ext-json_post/issues/3)
+--EXTENSIONS--
+json_post
+--INI--
+json_post.flags = 4194305
+--POST_RAW--
+Content-Type: application/json
+
+{"a
+--FILE_EXTERNAL--
+error.inc
+--EXPECTHEADERS--
+--EXPECT--
+DONE