mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
28 lines
504 B
PHP
28 lines
504 B
PHP
--TEST--
|
|
IntlTimeZone::createTimeZoneIDEnumeration(): basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
$enum = IntlTimeZone::createTimeZoneIDEnumeration(
|
|
IntlTimeZone::TYPE_ANY,
|
|
'PT',
|
|
-3600000);
|
|
print_r(iterator_to_array($enum));
|
|
|
|
$enum = intltz_create_time_zone_id_enumeration(
|
|
IntlTimeZone::TYPE_ANY,
|
|
'PT',
|
|
-3600000);
|
|
print_r(iterator_to_array($enum));
|
|
?>
|
|
--EXPECT--
|
|
Array
|
|
(
|
|
[0] => Atlantic/Azores
|
|
)
|
|
Array
|
|
(
|
|
[0] => Atlantic/Azores
|
|
)
|