timezone_getEquivalentID_basic.phpt 386 B

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