summaryrefslogtreecommitdiff
path: root/ext/json/tests/006.phpt
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2015-11-15 19:06:09 +0000
committerJakub Zelenka <bukka@php.net>2015-11-15 19:06:09 +0000
commite5abc53701ba5a9b58dfaba3b59881c9c410a8e7 (patch)
treecd52561b00721a80f3af32a3db28a716c5398175 /ext/json/tests/006.phpt
parentf8bf9bd86bdeef33a48e43d772d8a25a4fe3e6ff (diff)
downloadphp-git-e5abc53701ba5a9b58dfaba3b59881c9c410a8e7.tar.gz
Use the same CS for all json tests
Diffstat (limited to 'ext/json/tests/006.phpt')
-rw-r--r--ext/json/tests/006.phpt13
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/json/tests/006.phpt b/ext/json/tests/006.phpt
index e1d4b46889..da2fe009f1 100644
--- a/ext/json/tests/006.phpt
+++ b/ext/json/tests/006.phpt
@@ -4,15 +4,14 @@ json_encode() & extended encoding
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
<?php
-
-$a = array('<foo>',"'bar'",'"baz"','&blong&');
+$a = array('<foo>', "'bar'", '"baz"', '&blong&');
echo "Normal: ", json_encode($a), "\n";
-echo "Tags: ", json_encode($a,JSON_HEX_TAG), "\n";
-echo "Apos: ", json_encode($a,JSON_HEX_APOS), "\n";
-echo "Quot: ", json_encode($a,JSON_HEX_QUOT), "\n";
-echo "Amp: ", json_encode($a,JSON_HEX_AMP), "\n";
-echo "All: ", json_encode($a,JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP), "\n";
+echo "Tags: ", json_encode($a, JSON_HEX_TAG), "\n";
+echo "Apos: ", json_encode($a, JSON_HEX_APOS), "\n";
+echo "Quot: ", json_encode($a, JSON_HEX_QUOT), "\n";
+echo "Amp: ", json_encode($a, JSON_HEX_AMP), "\n";
+echo "All: ", json_encode($a, JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP), "\n";
?>
--EXPECT--
Normal: ["<foo>","'bar'","\"baz\"","&blong&"]