]> granicus.if.org Git - php/commitdiff
Skip test with ICU version < 58
authorMatteo Beccati <mbeccati@php.net>
Sat, 26 Sep 2020 08:47:56 +0000 (10:47 +0200)
committerMatteo Beccati <mbeccati@php.net>
Sat, 26 Sep 2020 08:47:56 +0000 (10:47 +0200)
ext/intl/tests/spoofchecker_unknown_restriction_level.phpt

index e1015880e37637caf85c9335b288480908a695f6..956a718aae4426b9533d6a47baf94607709ea12e 100644 (file)
@@ -1,7 +1,11 @@
 --TEST--
 Spoofchecker attempting to pass an unknown restriction level
 --SKIPIF--
-<?php if(!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip'; ?>
+<?php
+if (!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip';
+
+if (!method_exists(new Spoofchecker(), 'setRestrictionLevel')) print 'skip ICU version < 58';
+?>
 --FILE--
 <?php