mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
22 lines
489 B
PHP
22 lines
489 B
PHP
--TEST--
|
|
IntlCalendar::setMinimalDaysInFirstWeek() basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "nl");
|
|
|
|
$intlcal = IntlCalendar::createInstance('UTC');
|
|
var_dump(
|
|
$intlcal->setMinimalDaysInFirstWeek(6),
|
|
$intlcal->getMinimalDaysInFirstWeek(),
|
|
intlcal_set_minimal_days_in_first_week($intlcal, 5),
|
|
$intlcal->getMinimalDaysInFirstWeek()
|
|
);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
int(6)
|
|
bool(true)
|
|
int(5)
|