123456789101112131415161718192021222324 |
- --TEST--
- IntlCalendar::getWeekendTransition() basic test
- --INI--
- date.timezone=Atlantic/Azores
- --SKIPIF--
- <?php
- if (!extension_loaded('intl'))
- die('skip intl extension not enabled');
- if (version_compare(INTL_ICU_VERSION, '4.4') < 0)
- die('skip for ICU 4.4+');
- --FILE--
- <?php
- ini_set("intl.error_level", E_WARNING);
- ini_set("intl.default_locale", "nl");
- $intlcal = IntlCalendar::createInstance();
- var_dump($intlcal->getWeekendTransition(IntlCalendar::DOW_SUNDAY));
- var_dump(intlcal_get_weekend_transition($intlcal, IntlCalendar::DOW_SUNDAY));
- ?>
- ==DONE==
- --EXPECT--
- int(86400000)
- int(86400000)
- ==DONE==
|