1--TEST--
2IntlTimeZone::getDisplayName(): locale parameter
3--SKIPIF--
4<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
5<?php if (version_compare(INTL_ICU_VERSION, '55.1') >= 0) die('skip for ICU < 55.1'); ?>
6--FILE--
7<?php
8ini_set("intl.error_level", E_WARNING);
9ini_set("error_reporting", -1);
10ini_set("display_errors", 1);
11
12$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
13
14ini_set('intl.default_locale', 'en_US');
15var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG));
16var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG, NULL));
17var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG, 'pt_PT'));
18
19?>
20==DONE==
21--EXPECTF--
22string(30) "Western European Standard Time"
23string(30) "Western European Standard Time"
24string(32) "Hora %cadrão da Europa Ocidental"
25==DONE==
26