From: Tyson Andre Date: Thu, 28 May 2020 16:53:12 +0000 (-0400) Subject: Clean up calls to extension_loaded('json') in tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32a1ebbd43830937996116c73e39af4c4aa909d7;p=php Clean up calls to extension_loaded('json') in tests These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637 --- diff --git a/Zend/tests/type_declarations/union_types/type_checking_strict.phpt b/Zend/tests/type_declarations/union_types/type_checking_strict.phpt index bfb02196f1..7054a7cc19 100644 --- a/Zend/tests/type_declarations/union_types/type_checking_strict.phpt +++ b/Zend/tests/type_declarations/union_types/type_checking_strict.phpt @@ -1,9 +1,5 @@ --TEST-- Behavior of union type checks (strict) ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- ', "'bar'", '"baz"', '&blong&'); diff --git a/ext/json/tests/007.phpt b/ext/json/tests/007.phpt index 008d1dd5de..dea641317e 100644 --- a/ext/json/tests/007.phpt +++ b/ext/json/tests/007.phpt @@ -1,7 +1,5 @@ --TEST-- json_last_error() tests ---SKIPIF-- - --FILE-- --FILE-- --FILE-- 'bar'); diff --git a/ext/json/tests/bug40503.phpt b/ext/json/tests/bug40503.phpt index 17c8fbd92a..71295c0435 100644 --- a/ext/json/tests/bug40503.phpt +++ b/ext/json/tests/bug40503.phpt @@ -2,8 +2,6 @@ Bug #40503 (json_encode() value corruption on 32bit systems with overflown values) --INI-- serialize_precision=-1 ---SKIPIF-- - --FILE-- --FILE-- 1, "\0null-prefixed value")); diff --git a/ext/json/tests/bug41067.phpt b/ext/json/tests/bug41067.phpt index b20e6e1b53..1cddafe889 100644 --- a/ext/json/tests/bug41067.phpt +++ b/ext/json/tests/bug41067.phpt @@ -1,7 +1,5 @@ --TEST-- Bug #41067 (json_encode() problem with UTF-16 input) ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- diff --git a/ext/json/tests/bug50224.phpt b/ext/json/tests/bug50224.phpt index 95a6648c90..c6a8956025 100644 --- a/ext/json/tests/bug50224.phpt +++ b/ext/json/tests/bug50224.phpt @@ -2,8 +2,6 @@ bug #50224 (json_encode() does not always encode a float as a float) --INI-- serialize_precision=-1 ---SKIPIF-- - --FILE-- --FILE-- 𝄞<")); diff --git a/ext/json/tests/bug54058.phpt b/ext/json/tests/bug54058.phpt index 3f413b65f6..25c5b6f5ce 100644 --- a/ext/json/tests/bug54058.phpt +++ b/ext/json/tests/bug54058.phpt @@ -1,7 +1,5 @@ --TEST-- Bug #54058 (json_last_error() invalid UTF-8 produces wrong error) ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- '123343e871700'); diff --git a/ext/json/tests/bug64874_part1.phpt b/ext/json/tests/bug64874_part1.phpt index 6b79b8dc04..17ca0eef26 100644 --- a/ext/json/tests/bug64874_part1.phpt +++ b/ext/json/tests/bug64874_part1.phpt @@ -1,7 +1,5 @@ --TEST-- Whitespace part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly") ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --EXPECTF-- -Testing: +Testing: [ "JSON Test Pattern pass1", {"object with 1 member":["array with 1 element"]}, diff --git a/ext/json/tests/pass001.1_64bit.phpt b/ext/json/tests/pass001.1_64bit.phpt index c71adc20a1..6e0e2e5307 100644 --- a/ext/json/tests/pass001.1_64bit.phpt +++ b/ext/json/tests/pass001.1_64bit.phpt @@ -4,7 +4,6 @@ JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json) serialize_precision=-1 --SKIPIF-- --FILE-- @@ -79,7 +78,7 @@ $test = " ,\"rosebud\"] "; -echo 'Testing: ' . $test . "\n"; +echo 'Testing:' . $test . "\n"; echo "DECODE: AS OBJECT\n"; $obj = json_decode($test); var_dump($obj); @@ -103,7 +102,7 @@ var_dump($arr); ?> --EXPECTF-- -Testing: +Testing: [ "JSON Test Pattern pass1", {"object with 1 member":["array with 1 element"]}, diff --git a/ext/json/tests/pass001.phpt b/ext/json/tests/pass001.phpt index 170437f307..7fab84cc2d 100644 --- a/ext/json/tests/pass001.phpt +++ b/ext/json/tests/pass001.phpt @@ -2,10 +2,6 @@ JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json) --INI-- serialize_precision=-1 ---SKIPIF-- - --FILE-- --EXPECT-- -Testing: +Testing: [ "JSON Test Pattern pass1", {"object with 1 member":["array with 1 element"]}, diff --git a/ext/json/tests/pass002.phpt b/ext/json/tests/pass002.phpt index 1d375ad3cf..9d2edc4a93 100644 --- a/ext/json/tests/pass002.phpt +++ b/ext/json/tests/pass002.phpt @@ -1,7 +1,5 @@ --TEST-- JSON (http://www.crockford.com/JSON/JSON_checker/test/pass2.json) ---SKIPIF-- - --FILE-- --FILE-- --EXPECTF-- -Testing: +Testing: { "JSON Test Pattern pass3": { "The outermost value": "must be an object or array.", diff --git a/ext/json/tests/serialize.phpt b/ext/json/tests/serialize.phpt index ab2f9c926d..61396b332c 100644 --- a/ext/json/tests/serialize.phpt +++ b/ext/json/tests/serialize.phpt @@ -2,8 +2,6 @@ json_encode() Serialization tests --INI-- serialize_precision=-1 ---SKIPIF-- - --FILE-- --FILE-- - --FILE-- --FILE-- - --FILE-- ')->c), "\n"; diff --git a/ext/standard/tests/general_functions/is_callable_variation1.phpt b/ext/standard/tests/general_functions/is_callable_variation1.phpt index 4bb7f28a16..52da80951b 100644 --- a/ext/standard/tests/general_functions/is_callable_variation1.phpt +++ b/ext/standard/tests/general_functions/is_callable_variation1.phpt @@ -1,9 +1,5 @@ --TEST-- Test is_callable() function : usage variations - undefined functions ---SKIPIF-- - --FILE-- --FILE-- --FILE--