1--TEST--
2IntlCalendar::getKeywordValuesForLocale() basic test
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7if (version_compare(INTL_ICU_VERSION, '4.2') < 0)
8	die('skip for ICU 4.2+');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12ini_set("intl.default_locale", "nl");
13
14print_r(
15iterator_to_array(
16IntlCalendar::getKeywordValuesForLocale('calendar', 'pt', true)
17));
18echo "\n";
19
20$var = iterator_to_array(
21intlcal_get_keyword_values_for_locale('calendar', 'pt', false)
22);
23var_dump(count($var) > 8);
24var_dump(in_array('japanese', $var));
25
26?>
27==DONE==
28--EXPECT--
29Array
30(
31    [0] => gregorian
32)
33
34bool(true)
35bool(true)
36==DONE==
36