mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
32 lines
573 B
PHP
32 lines
573 B
PHP
--TEST--
|
|
IntlTimeZone::createTimeZoneIDEnumeration(): basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--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));
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
Array
|
|
(
|
|
[0] => Atlantic/Azores
|
|
)
|
|
Array
|
|
(
|
|
[0] => Atlantic/Azores
|
|
)
|
|
==DONE==
|