1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/intl/tests/timezone_createEnumeration_variation2.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

20 lines
417 B
PHP

--TEST--
IntlTimeZone::createEnumeration(): variant with country
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$tz = IntlTimeZone::createEnumeration('NL');
var_dump(get_class($tz));
$count = count(iterator_to_array($tz));
var_dump($count >= 1);
$tz->rewind();
var_dump(in_array('Europe/Amsterdam', iterator_to_array($tz)));
?>
--EXPECT--
string(12) "IntlIterator"
bool(true)
bool(true)