php-src/ext/intl/tests/calendar_getNow_basic.phpt
2012-04-01 23:28:00 +01:00

23 lines
446 B
PHP

--TEST--
IntlCalendar::getNow() basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$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);
?>
==DONE==
--EXPECT--
bool(true)
bool(true)
==DONE==