timezone_getCanonicalID_basic.phpt 373 B

12345678910111213141516171819
  1. --TEST--
  2. IntlTimeZone::getCanonicalID: 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. print_R(IntlTimeZone::getCanonicalID('Portugal'));
  11. echo "\n";
  12. print_R(intltz_get_canonical_id('Portugal'));
  13. echo "\n";
  14. ?>
  15. ==DONE==
  16. --EXPECT--
  17. Europe/Lisbon
  18. Europe/Lisbon
  19. ==DONE==