ru_php/ext/intl/tests/timezone_createEnumeration_variation2.phpt

20 lines
377 B
PHP

--TEST--
IntlTimeZone::createEnumeration(): variant with country
--EXTENSIONS--
intl
--FILE--
<?php
$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)