timezone_countEquivalentIDs_basic.phpt 423 B

1234567891011121314151617181920
  1. --TEST--
  2. IntlTimeZone::countEquivalentIDs(): 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. $count = IntlTimeZone::countEquivalentIDs('Europe/Lisbon');
  11. var_dump($count >= 2);
  12. $count2 = intltz_count_equivalent_ids('Europe/Lisbon');
  13. var_dump($count2 == $count);
  14. ?>
  15. ==DONE==
  16. --EXPECT--
  17. bool(true)
  18. bool(true)
  19. ==DONE==