calendar_setMinimalDaysInFirstWeek_basic.phpt 552 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. IntlCalendar::setMinimalDaysInFirstWeek() 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. $intlcal->setMinimalDaysInFirstWeek(6),
  14. $intlcal->getMinimalDaysInFirstWeek(),
  15. intlcal_set_minimal_days_in_first_week($intlcal, 5),
  16. $intlcal->getMinimalDaysInFirstWeek()
  17. );
  18. ?>
  19. ==DONE==
  20. --EXPECT--
  21. bool(true)
  22. int(6)
  23. bool(true)
  24. int(5)
  25. ==DONE==