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