summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/tests/bug73991.phpt3
-rw-r--r--ext/json/tests/json_decode_exceptions.phpt2
-rw-r--r--ext/json/tests/json_encode_exceptions.phpt2
-rw-r--r--ext/json/tests/json_exceptions_error_clearing.phpt2
4 files changed, 9 insertions, 0 deletions
diff --git a/ext/json/tests/bug73991.phpt b/ext/json/tests/bug73991.phpt
index 06aba555f0..fc0be19a92 100644
--- a/ext/json/tests/bug73991.phpt
+++ b/ext/json/tests/bug73991.phpt
@@ -1,5 +1,7 @@
--TEST--
Allow JSON_OBJECT_AS_ARRAY to have an effect
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
--FILE--
<?php
@@ -9,6 +11,7 @@ var_dump(json_decode($json, false));
var_dump(json_decode($json, true));
var_dump(json_decode($json, null, 512, 0));
var_dump(json_decode($json, null, 512, JSON_OBJECT_AS_ARRAY));
+?>
--EXPECTF--
object(stdClass)#%d (1) {
["foo"]=>
diff --git a/ext/json/tests/json_decode_exceptions.phpt b/ext/json/tests/json_decode_exceptions.phpt
index e71a3a54c0..14cf59fd02 100644
--- a/ext/json/tests/json_decode_exceptions.phpt
+++ b/ext/json/tests/json_decode_exceptions.phpt
@@ -1,5 +1,7 @@
--TEST--
Test json_decode() function : JSON_THROW_ON_ERROR flag
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
--FILE--
<?php
diff --git a/ext/json/tests/json_encode_exceptions.phpt b/ext/json/tests/json_encode_exceptions.phpt
index 7da2f9cdd0..507f16ede9 100644
--- a/ext/json/tests/json_encode_exceptions.phpt
+++ b/ext/json/tests/json_encode_exceptions.phpt
@@ -1,5 +1,7 @@
--TEST--
Test json_encode() function : JSON_THROW_ON_ERROR flag
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
--FILE--
<?php
diff --git a/ext/json/tests/json_exceptions_error_clearing.phpt b/ext/json/tests/json_exceptions_error_clearing.phpt
index e55be5e02b..6d01dd7c33 100644
--- a/ext/json/tests/json_exceptions_error_clearing.phpt
+++ b/ext/json/tests/json_exceptions_error_clearing.phpt
@@ -1,5 +1,7 @@
--TEST--
JSON_THROW_ON_ERROR: global error flag untouched
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
--FILE--
<?php