[php-src] master: ext/intl: Remove redundant SKIPIF checks from intl tests (#24416)
| From: | Weilin Du via GitHub | Date: | Mon, 19 Oct 2026 13:32:48 +0000 |
| Subject: | [php-src] master: ext/intl: Remove redundant SKIPIF checks from intl tests (#24416) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142448@lists.php.net to get a copy of this message | ||
Author: Weilin Du (LamentXU123)
Committer: GitHub (web-flow)
Pusher: LamentXU123
Date: 2026-10-19T21:32:44+08:00
Commit: https://github.com/php/php-src/commit/8db89af6bdfa6c0e9b891b8e5b0dd23b3cea5b84
Raw diff: https://github.com/php/php-src/commit/8db89af6bdfa6c0e9b891b8e5b0dd23b3cea5b84.diff
ext/intl: Remove redundant SKIPIF checks from intl tests (#24416)
These SKIPIFs are hidding issues.
If they are not then we are in trouble and the tests should reflect that.
Changed paths:
M ext/intl/tests/bug62915-2.phpt
M ext/intl/tests/bug72506.phpt
M ext/intl/tests/idn_uts46_basic.phpt
M ext/intl/tests/idn_uts46_errors.phpt
M ext/intl/tests/normalizer_normalize_kc_cf.phpt
M ext/intl/tests/spoofchecker_002.phpt
M ext/intl/tests/spoofchecker_003.phpt
M ext/intl/tests/spoofchecker_005.phpt
M ext/intl/tests/spoofchecker_006.phpt
M ext/intl/tests/spoofchecker_007.phpt
M ext/intl/tests/spoofchecker_008.phpt
M ext/intl/tests/spoofchecker_double_ctor.phpt
M ext/intl/tests/spoofchecker_setchecks_error_code.phpt
M ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
M ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
Diff:
diff --git a/ext/intl/tests/bug62915-2.phpt b/ext/intl/tests/bug62915-2.phpt
index c3921081df2c..9623e45e37e3 100644
--- a/ext/intl/tests/bug62915-2.phpt
+++ b/ext/intl/tests/bug62915-2.phpt
@@ -2,11 +2,6 @@
Bug #62915: cloning of several classes is defective
--EXTENSIONS--
intl
---SKIPIF--
-<?php
-if (!class_exists('Spoofchecker'))
- die('skip intl extension does not have spoof checker');
-?>
--FILE--
<?php
class A extends IntlDateFormatter {
diff --git a/ext/intl/tests/bug72506.phpt b/ext/intl/tests/bug72506.phpt
index 102de1e87969..94f66366f54f 100644
--- a/ext/intl/tests/bug72506.phpt
+++ b/ext/intl/tests/bug72506.phpt
@@ -5,10 +5,6 @@ Actually, the $info array should be populated for these cases, but at least
it's
not clear yet with which values exactly.
--EXTENSIONS--
intl
---SKIPIF--
-<?php
-if (!defined('INTL_IDNA_VARIANT_UTS46')) die('skip no UTS #46 API');
-?>
--FILE--
<?php
// ASCII domain name with 255 characters
diff --git a/ext/intl/tests/idn_uts46_basic.phpt b/ext/intl/tests/idn_uts46_basic.phpt
index 689dae375f20..1be57ec0bc6c 100644
--- a/ext/intl/tests/idn_uts46_basic.phpt
+++ b/ext/intl/tests/idn_uts46_basic.phpt
@@ -2,11 +2,6 @@
IDN UTS #46 API basic tests
--EXTENSIONS--
intl
---SKIPIF--
-<?php
- if (!defined('INTL_IDNA_VARIANT_UTS46'))
- die('skip no UTS #46 API');
-?>
--FILE--
<?php
$utf8dn = "www.fußball.com";
diff --git a/ext/intl/tests/idn_uts46_errors.phpt b/ext/intl/tests/idn_uts46_errors.phpt
index be7121482b7f..770b1cbd14da 100644
--- a/ext/intl/tests/idn_uts46_errors.phpt
+++ b/ext/intl/tests/idn_uts46_errors.phpt
@@ -2,11 +2,6 @@
IDN UTS #46 API error tests
--EXTENSIONS--
intl
---SKIPIF--
-<?php
- if (!defined('INTL_IDNA_VARIANT_UTS46'))
- die('skip no UTS #46 API');
-?>
--FILE--
<?php
echo "=> PHP level errors", "\n";
diff --git a/ext/intl/tests/normalizer_normalize_kc_cf.phpt
b/ext/intl/tests/normalizer_normalize_kc_cf.phpt
index d6786b070cc0..59e10bf2f232 100644
--- a/ext/intl/tests/normalizer_normalize_kc_cf.phpt
+++ b/ext/intl/tests/normalizer_normalize_kc_cf.phpt
@@ -2,8 +2,6 @@
normalize() NFKC_Casefold
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!defined('Normalizer::FORM_KC_CF')) print 'skip Normalizer::FORM_KC_CF
constant not defined'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_002.phpt b/ext/intl/tests/spoofchecker_002.phpt
index 1a871a72f6ae..98b91073a0e6 100644
--- a/ext/intl/tests/spoofchecker_002.phpt
+++ b/ext/intl/tests/spoofchecker_002.phpt
@@ -2,8 +2,6 @@
spoofchecker confusable tests
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_003.phpt b/ext/intl/tests/spoofchecker_003.phpt
index 1e019a961423..76d8bb81e3d3 100644
--- a/ext/intl/tests/spoofchecker_003.phpt
+++ b/ext/intl/tests/spoofchecker_003.phpt
@@ -2,8 +2,6 @@
spoofchecker with locale settings
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_005.phpt b/ext/intl/tests/spoofchecker_005.phpt
index 9fc6628e6ae4..abc6e11a62b5 100644
--- a/ext/intl/tests/spoofchecker_005.phpt
+++ b/ext/intl/tests/spoofchecker_005.phpt
@@ -2,8 +2,6 @@
spoofchecker with settings changed
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_006.phpt b/ext/intl/tests/spoofchecker_006.phpt
index a9768d932d60..6542d08720f1 100644
--- a/ext/intl/tests/spoofchecker_006.phpt
+++ b/ext/intl/tests/spoofchecker_006.phpt
@@ -2,8 +2,6 @@
spoofchecker suspicious character checker
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_007.phpt b/ext/intl/tests/spoofchecker_007.phpt
index 5f3dbb47f192..9243b673d979 100644
--- a/ext/intl/tests/spoofchecker_007.phpt
+++ b/ext/intl/tests/spoofchecker_007.phpt
@@ -2,8 +2,6 @@
spoofchecker with restriction level
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_008.phpt b/ext/intl/tests/spoofchecker_008.phpt
index 3f6fd39777b6..18ad416e6b25 100644
--- a/ext/intl/tests/spoofchecker_008.phpt
+++ b/ext/intl/tests/spoofchecker_008.phpt
@@ -2,8 +2,6 @@
spoofchecker with locale settings
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_double_ctor.phpt
b/ext/intl/tests/spoofchecker_double_ctor.phpt
index 138a9cbffbb1..50f05883a883 100644
--- a/ext/intl/tests/spoofchecker_double_ctor.phpt
+++ b/ext/intl/tests/spoofchecker_double_ctor.phpt
@@ -2,8 +2,6 @@
Spoofchecker double construction should not be allowed
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!class_exists("Spoofchecker")) print "skip"; ?>
--FILE--
<?php
$checker = new Spoofchecker();
diff --git a/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
b/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
index a9c1eaeab452..886a09a50c60 100644
--- a/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
+++ b/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
@@ -2,8 +2,6 @@
Spoofchecker::setChecks() records the ICU error code
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
b/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
index 56cc194991ee..f34f2ba1dfeb 100644
--- a/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
+++ b/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
@@ -2,8 +2,6 @@
Spoofchecker exposes restriction-level APIs on all supported ICU versions
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
$r = new ReflectionClass("Spoofchecker");
diff --git a/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
b/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
index f3078e8969f2..d15d255a47ce 100644
--- a/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
+++ b/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
@@ -2,10 +2,6 @@
Spoofchecker attempting to pass an unknown restriction level
--EXTENSIONS--
intl
---SKIPIF--
-<?php
-if (!class_exists("Spoofchecker")) print 'skip';
-?>
--FILE--
<?php