mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
17 lines
371 B
PHP
17 lines
371 B
PHP
--TEST--
|
|
IntlCalendar::getLocale() basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--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"
|