php-src/ext/intl/tests/calendar_getKeywordValuesForLocale_basic.phpt
2012-04-01 23:28:01 +01:00

36 lines
674 B
PHP

--TEST--
IntlCalendar::getKeywordValuesForLocale() basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
if (version_compare(INTL_ICU_VERSION, '4.2') < 0)
die('skip for ICU 4.2+');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
print_r(
iterator_to_array(
IntlCalendar::getKeywordValuesForLocale('calendar', 'pt', true)
));
echo "\n";
$var = iterator_to_array(
intlcal_get_keyword_values_for_locale('calendar', 'pt', false)
);
var_dump(count($var) > 8);
var_dump(in_array('japanese', $var));
?>
==DONE==
--EXPECT--
Array
(
[0] => gregorian
)
bool(true)
bool(true)
==DONE==