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