1--TEST--
2IntlCalendar::getDayOfWeekType() basic test
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9if (version_compare(INTL_ICU_VERSION, '4.4') < 0 || version_compare(INTL_ICU_VERSION, '52.1') >= 0)
10	die('skip for ICU >= 4.4 and 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==DONE==
28--EXPECT--
29int(3)
30int(0)
31int(0)
32int(0)
33int(1)
34==DONE==
35