php-src/ext/intl/tests/timezone_createTimeZone_basic.phpt
Gina Peter Banyard c42e6d62d8
ext/intl: modernize tests (#19392)
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00

26 lines
464 B
PHP

--TEST--
IntlTimeZone::createTimeZone(): basic test
--EXTENSIONS--
intl
--FILE--
<?php
$tz = IntlTimeZone::createTimeZone('GMT+01:00');
print_r($tz);
$tz = intltz_create_time_zone('GMT+01:00');
print_r($tz);
?>
--EXPECT--
IntlTimeZone Object
(
[valid] => 1
[id] => GMT+01:00
[rawOffset] => 3600000
[currentOffset] => 3600000
)
IntlTimeZone Object
(
[valid] => 1
[id] => GMT+01:00
[rawOffset] => 3600000
[currentOffset] => 3600000
)