calendar_getWeekendTransition_basic.phpt 604 B

123456789101112131415161718192021222324
  1. --TEST--
  2. IntlCalendar::getWeekendTransition() basic test
  3. --INI--
  4. date.timezone=Atlantic/Azores
  5. --SKIPIF--
  6. <?php
  7. if (!extension_loaded('intl'))
  8. die('skip intl extension not enabled');
  9. if (version_compare(INTL_ICU_VERSION, '4.4') < 0)
  10. die('skip for ICU 4.4+');
  11. --FILE--
  12. <?php
  13. ini_set("intl.error_level", E_WARNING);
  14. ini_set("intl.default_locale", "nl");
  15. $intlcal = IntlCalendar::createInstance();
  16. var_dump($intlcal->getWeekendTransition(IntlCalendar::DOW_SUNDAY));
  17. var_dump(intlcal_get_weekend_transition($intlcal, IntlCalendar::DOW_SUNDAY));
  18. ?>
  19. ==DONE==
  20. --EXPECT--
  21. int(86400000)
  22. int(86400000)
  23. ==DONE==