summaryrefslogtreecommitdiff
path: root/ext/intl/tests/calendar_getLocale_basic.phpt
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-04-01 11:11:40 +0200
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-04-01 23:28:00 +0100
commit5e65205a8f52d25635bb4e7619a4b0216aefa4b8 (patch)
tree5c9984f097fe230ad52dbd48ad8895056c108960 /ext/intl/tests/calendar_getLocale_basic.phpt
parent6c891f33d73afc50c3d79e982c5752fc3f5df85f (diff)
downloadphp-git-5e65205a8f52d25635bb4e7619a4b0216aefa4b8.tar.gz
Initial checkin of calendar/timezone code.
Diffstat (limited to 'ext/intl/tests/calendar_getLocale_basic.phpt')
-rw-r--r--ext/intl/tests/calendar_getLocale_basic.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/intl/tests/calendar_getLocale_basic.phpt b/ext/intl/tests/calendar_getLocale_basic.phpt
new file mode 100644
index 0000000000..55937d6aa9
--- /dev/null
+++ b/ext/intl/tests/calendar_getLocale_basic.phpt
@@ -0,0 +1,20 @@
+--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));
+?>
+==DONE==
+--EXPECT--
+string(2) "nl"
+string(5) "nl_NL"
+==DONE== \ No newline at end of file