php-src/ext/intl/tests/calendar_getTimeZone_basic.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

29 lines
540 B
PHP

--TEST--
IntlCalendar::getTimeZone() basic test
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$intlcal = IntlCalendar::createInstance('GMT+00:01');
print_r($intlcal->getTimeZone());
print_r(intlcal_get_time_zone($intlcal));
?>
--EXPECT--
IntlTimeZone Object
(
[valid] => 1
[id] => GMT+00:01
[rawOffset] => 60000
[currentOffset] => 60000
)
IntlTimeZone Object
(
[valid] => 1
[id] => GMT+00:01
[rawOffset] => 60000
[currentOffset] => 60000
)