1--TEST--
2IntlCalendar::getLocale() basic test
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7if (version_compare(INTL_ICU_VERSION, '4.8') < 0)
8	die('skip for ICU 4.8+');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12ini_set("intl.default_locale", "nl");
13
14$intlcal = IntlCalendar::createInstance('UTC');
15var_dump($intlcal->getLocale(Locale::ACTUAL_LOCALE));
16var_dump(intlcal_get_locale($intlcal, Locale::VALID_LOCALE));
17?>
18==DONE==
19--EXPECT--
20string(2) "nl"
21string(5) "nl_NL"
22==DONE==
22