blob: a5071545e265236af1f9f4a1ae087b289eaa0ab2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
IntlCalendar::getAvailableLocales() 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");
$locales = IntlCalendar::getAvailableLocales();
var_dump(count($locales) > 100);
$locales = intlcal_get_available_locales();
var_dump(in_array('pt', $locales));
?>
--EXPECT--
bool(true)
bool(true)
|