calendar_setFirstDayOfWeek_basic.phpt 597 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. IntlCalendar::setFirstDayOfWeek() 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. ini_set("intl.default_locale", "nl");
  11. $intlcal = IntlCalendar::createInstance('UTC');
  12. var_dump(
  13. IntlCalendar::DOW_TUESDAY,
  14. $intlcal->setFirstDayOfWeek(IntlCalendar::DOW_TUESDAY),
  15. $intlcal->getFirstDayOfWeek(),
  16. intlcal_set_first_day_of_week($intlcal, IntlCalendar::DOW_WEDNESDAY),
  17. $intlcal->getFirstDayOfWeek()
  18. );
  19. ?>
  20. ==DONE==
  21. --EXPECT--
  22. int(3)
  23. bool(true)
  24. int(3)
  25. bool(true)
  26. int(4)
  27. ==DONE==