summaryrefslogtreecommitdiff
path: root/ext/intl/tests/timezone_getDisplayName_variant3.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/timezone_getDisplayName_variant3.phpt
parent6c891f33d73afc50c3d79e982c5752fc3f5df85f (diff)
downloadphp-git-5e65205a8f52d25635bb4e7619a4b0216aefa4b8.tar.gz
Initial checkin of calendar/timezone code.
Diffstat (limited to 'ext/intl/tests/timezone_getDisplayName_variant3.phpt')
-rw-r--r--ext/intl/tests/timezone_getDisplayName_variant3.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/intl/tests/timezone_getDisplayName_variant3.phpt b/ext/intl/tests/timezone_getDisplayName_variant3.phpt
new file mode 100644
index 0000000000..41cab8d0b6
--- /dev/null
+++ b/ext/intl/tests/timezone_getDisplayName_variant3.phpt
@@ -0,0 +1,26 @@
+--TEST--
+IntlTimeZone::getDisplayName(): locale parameter
+--SKIPIF--
+<?php
+if (!extension_loaded('intl'))
+ die('skip intl extension not enabled');
+--FILE--
+<?php
+ini_set("intl.error_level", E_WARNING);
+ini_set("error_reporting", -1);
+ini_set("display_errors", 1);
+
+$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
+
+ini_set('intl.default_locale', 'en_US');
+var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG));
+var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG, NULL));
+var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG, 'pt_PT'));
+
+?>
+==DONE==
+--EXPECT--
+string(21) "Western European Time"
+string(21) "Western European Time"
+string(24) "Hora da Europa Ocidental"
+==DONE== \ No newline at end of file