1--TEST-- 2IntlTimeZone::createTimeZone(): 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); 12$tz = IntlTimeZone::createTimeZone('GMT+01:00'); 13print_r($tz); 14$tz = intltz_create_time_zone('GMT+01:00'); 15print_r($tz); 16?> 17==DONE== 18--EXPECT-- 19IntlTimeZone Object 20( 21 [valid] => 1 22 [id] => GMT+01:00 23 [rawOffset] => 3600000 24 [currentOffset] => 3600000 25) 26IntlTimeZone Object 27( 28 [valid] => 1 29 [id] => GMT+01:00 30 [rawOffset] => 3600000 31 [currentOffset] => 3600000 32) 33==DONE== 33