Skip to content

Commit 43ce784

Browse files
committed
Skip test with ICU version < 58
1 parent e42abea commit 43ce784

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/intl/tests/spoofchecker_unknown_restriction_level.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
--TEST--
22
Spoofchecker attempting to pass an unknown restriction level
33
--SKIPIF--
4-
<?php if(!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip'; ?>
4+
<?php
5+
if (!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip';
6+
7+
if (!method_exists(new Spoofchecker(), 'setRestrictionLevel')) print 'skip ICU version < 58';
8+
?>
59
--FILE--
610
<?php
711

0 commit comments

Comments
 (0)