ru_php/ext/intl/tests/timezone_getDisplayName_basic.phpt

20 lines
385 B
Plaintext
Raw Permalink Normal View History

--TEST--
IntlTimeZone::getDisplayName(): basic test
--EXTENSIONS--
intl
--FILE--
<?php
$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
ini_set('intl.default_locale', 'en_US');
var_dump($lsb->getDisplayName());
ini_set('intl.default_locale', 'pt_PT');
var_dump($lsb->getDisplayName());
?>
--EXPECTF--
string(%d) "Western European%sTime"
string(%d) "Hora%sda Europa Ocidental"