php-src/ext/intl/tests/timezone_getUnknown_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
488 B
PHP

--TEST--
IntlCalendar::getUnknown(): basic test
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$tz = IntlTimeZone::getUnknown();
print_r($tz);
$tz = intltz_get_unknown();
print_r($tz);
?>
--EXPECT--
IntlTimeZone Object
(
[valid] => 1
[id] => Etc/Unknown
[rawOffset] => 0
[currentOffset] => 0
)
IntlTimeZone Object
(
[valid] => 1
[id] => Etc/Unknown
[rawOffset] => 0
[currentOffset] => 0
)