1--TEST--
2IntlCalendar::getDayOfWeekType() basic test
3--INI--
4date.timezone=Atlantic/Azores
5--EXTENSIONS--
6intl
7--SKIPIF--
8<?php
9if (version_compare(INTL_ICU_VERSION, '52.1') >= 0)
10    die('skip for ICU < 52.1');
11--FILE--
12<?php
13ini_set("intl.error_level", E_WARNING);
14ini_set("intl.default_locale", "nl");
15
16$intlcal = IntlCalendar::createInstance('UTC');
17$intlcal->setTime(strtotime('2012-02-29 00:00:00 +0000') * 1000);
18var_dump(
19        intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY),
20        $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY),
21        $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY),
22        $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY),
23        $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
24);
25
26?>
27--EXPECT--
28int(3)
29int(0)
30int(0)
31int(0)
32int(1)
33