projects
/
m6w6
/
ext-json_post
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
88d6171
)
add test
author
Michael Wallner
<mike@php.net>
Wed, 13 May 2020 12:27:09 +0000
(14:27 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 13 May 2020 12:27:09 +0000
(14:27 +0200)
tests/005.phpt
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/005.phpt
b/tests/005.phpt
new file mode 100644
(file)
index 0000000..
4fc5664
--- /dev/null
+++ b/
tests/005.phpt
@@ -0,0
+1,21
@@
+--TEST--
+json_post with empty object
+--SKIPIF--
+<?php
+extension_loaded("json_post") or die("skip need json_post support\n");
+?>
+--POST_RAW--
+Content-type: text/json
+
+{
+}
+--FILE--
+<?php
+var_dump($_POST, json_last_error());
+?>
+Done
+--EXPECTF--
+array(0) {
+}
+int(0)
+Done