summaryrefslogtreecommitdiff
path: root/ext/intl/tests/calendar_getLocale_basic.phpt
blob: 92b61d35d5379bac21dba9b2d665caf423e19a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
IntlCalendar::getLocale() basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
	die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");

$intlcal = IntlCalendar::createInstance('UTC');
var_dump($intlcal->getLocale(Locale::ACTUAL_LOCALE));
var_dump(intlcal_get_locale($intlcal, Locale::VALID_LOCALE));
?>
--EXPECT--
string(2) "nl"
string(5) "nl_NL"