projects
/
m6w6
/
ext-json_post
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
JSON_POST_ERROR, json_post.onerror.* INI, warning
[m6w6/ext-json_post]
/
tests
/
error004.phpt
diff --git
a/tests/error004.phpt
b/tests/error004.phpt
index 42cfa3408e24f21960e161de5ce182bf8b1d508e..00fb76b9113db79ee2acf603373da946164f5a5d 100644
(file)
--- a/
tests/error004.phpt
+++ b/
tests/error004.phpt
@@
-1,22
+1,14
@@
--TEST--
--TEST--
-json_post with malformed JSON (https://github.com/m6w6/ext-json_post/issues/3)
---SKIPIF--
-<?php
-extension_loaded("json_post") or die("skip need json_post support\n");
-?>
+json_post with malformed JSON [exit] (https://github.com/m6w6/ext-json_post/issues/3)
+--EXTENSIONS--
+json_post
--INI--
--INI--
-json_post.
error_
exit = true
+json_post.
onerror.
exit = true
--POST_RAW--
Content-Type: application/json
--POST_RAW--
Content-Type: application/json
-{
- "greeting": "Hello World
-}
---FILE--
-<?php
-var_dump($_POST);
-var_dump(http_response_code());
-?>
-Done
+{"a
+--FILE_EXTERNAL--
+error.inc
--EXPECTHEADERS--
--EXPECT--
--EXPECTHEADERS--
--EXPECT--