mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
c5401854fc
This should fix most of the remaining issues with tabs and spaces being mixed in tests.
26 lines
612 B
PHP
26 lines
612 B
PHP
--TEST--
|
|
IntlCalendar::setFirstDayOfWeek() basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "nl");
|
|
|
|
$intlcal = IntlCalendar::createInstance('UTC');
|
|
var_dump(
|
|
IntlCalendar::DOW_TUESDAY,
|
|
$intlcal->setFirstDayOfWeek(IntlCalendar::DOW_TUESDAY),
|
|
$intlcal->getFirstDayOfWeek(),
|
|
intlcal_set_first_day_of_week($intlcal, IntlCalendar::DOW_WEDNESDAY),
|
|
$intlcal->getFirstDayOfWeek()
|
|
);
|
|
?>
|
|
--EXPECT--
|
|
int(3)
|
|
bool(true)
|
|
int(3)
|
|
bool(true)
|
|
int(4)
|