timezone_getDisplayName_basic.phpt 512 B

123456789101112131415161718192021222324
  1. --TEST--
  2. IntlTimeZone::getDisplayName(): basic test
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('intl'))
  6. die('skip intl extension not enabled');
  7. --FILE--
  8. <?php
  9. ini_set("intl.error_level", E_WARNING);
  10. $lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
  11. ini_set('intl.default_locale', 'en_US');
  12. var_dump($lsb->getDisplayName());
  13. ini_set('intl.default_locale', 'pt_PT');
  14. var_dump($lsb->getDisplayName());
  15. ?>
  16. ==DONE==
  17. --EXPECTF--
  18. string(%d) "Western European%sTime"
  19. string(%d) "Hora%sda Europa Ocidental"
  20. ==DONE==