summaryrefslogtreecommitdiff
path: root/ext/intl/tests
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-07-22 17:20:56 +0200
committerNikita Popov <nikic@php.net>2016-07-22 17:20:56 +0200
commit4fc1bfa93bca114fc6d31b6f71836064dac157cd (patch)
treeb45b3e2f3d748fb196295b9472a3d9483eb093e6 /ext/intl/tests
parent6b116932b28b76c3f075921a0f2660f7bf5ac4e1 (diff)
downloadphp-git-4fc1bfa93bca114fc6d31b6f71836064dac157cd.tar.gz
Make IntlCalendar::getNow() test more tolerant
Due to the *1000 factor the two values may be off-by-1000 even without any actual delay, so increase the check to 2000.
Diffstat (limited to 'ext/intl/tests')
-rw-r--r--ext/intl/tests/calendar_getNow_basic.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/tests/calendar_getNow_basic.phpt b/ext/intl/tests/calendar_getNow_basic.phpt
index 18325dfa60..2df112d7b2 100644
--- a/ext/intl/tests/calendar_getNow_basic.phpt
+++ b/ext/intl/tests/calendar_getNow_basic.phpt
@@ -13,11 +13,11 @@ $now = IntlCalendar::getNow();
$proc_now = intlcal_get_now();
$time = time();
var_dump(abs($now - $proc_now) < 500);
-var_dump(abs($time * 1000 - $proc_now) < 1000);
+var_dump(abs($time * 1000 - $proc_now) < 2000);
?>
==DONE==
--EXPECT--
bool(true)
bool(true)
-==DONE== \ No newline at end of file
+==DONE==