summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-10-20 15:24:43 +0200
committerAnatol Belski <ab@php.net>2017-10-20 15:24:43 +0200
commit2f444640b4156208994c246015f45d3cbe8828a3 (patch)
tree69171fdba9178d85508aa597d1940e809e363d96
parente2afa00b4cc751588d9cb386735ae544812dc482 (diff)
downloadphp-git-2f444640b4156208994c246015f45d3cbe8828a3.tar.gz
Fix version checks in tests
-rw-r--r--ext/intl/tests/timezone_IDforWindowsID_basic.phpt2
-rw-r--r--ext/intl/tests/timezone_IDforWindowsID_basic2.phpt3
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/intl/tests/timezone_IDforWindowsID_basic.phpt b/ext/intl/tests/timezone_IDforWindowsID_basic.phpt
index 935a893875..f8e3d33325 100644
--- a/ext/intl/tests/timezone_IDforWindowsID_basic.phpt
+++ b/ext/intl/tests/timezone_IDforWindowsID_basic.phpt
@@ -5,7 +5,7 @@ IntlTimeZone::getIDForWindowsID basic test
if (!extension_loaded('intl'))
die('skip intl extension not enabled'); ?>
<?php if (version_compare(INTL_ICU_VERSION, '52') < 0)die('skip for ICU >= 52'); ?>
-<?php if (version_compare(INTL_ICU_VERSION, '57.1') >= 0) die('skip for ICU <= 57.1'); ?>
+<?php if (version_compare(INTL_ICU_VERSION, '58.1') >= 0) die('skip for ICU <= 57.1'); ?>
--FILE--
<?php
diff --git a/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt b/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
index 2929fb9c10..4c3023a856 100644
--- a/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
+++ b/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
@@ -4,8 +4,7 @@ IntlTimeZone::getIDForWindowsID basic test
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled'); ?>
-<?php if (version_compare(INTL_ICU_VERSION, '52') < 0) die('skip for ICU >= 52'); ?>
-<?php if (version_compare(INTL_ICU_VERSION, '57.1') < 0) die('skip for ICU >= 58.1'); ?>
+<?php if (version_compare(INTL_ICU_VERSION, '58.1') >= 0) die('skip for ICU <= 57.1'); ?>
--FILE--
<?php