1--TEST-- 2IntlCalendar::getUnknown(): basic test 3--SKIPIF-- 4<?php 5if (!extension_loaded('intl')) 6 die('skip intl extension not enabled'); 7if (version_compare(INTL_ICU_VERSION, '49') < 0) 8 die('skip for ICU 49+'); 9--FILE-- 10<?php 11ini_set("intl.error_level", E_WARNING); 12ini_set("intl.default_locale", "nl"); 13 14$tz = IntlTimeZone::getUnknown(); 15print_r($tz); 16$tz = intltz_get_unknown(); 17print_r($tz); 18?> 19==DONE== 20--EXPECT-- 21IntlTimeZone Object 22( 23 [valid] => 1 24 [id] => Etc/Unknown 25 [rawOffset] => 0 26 [currentOffset] => 0 27) 28IntlTimeZone Object 29( 30 [valid] => 1 31 [id] => Etc/Unknown 32 [rawOffset] => 0 33 [currentOffset] => 0 34) 35==DONE==