1--TEST--
2IntlCalendar::isWeekend basic test
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8    die('skip intl extension not enabled');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12ini_set("intl.default_locale", "nl");
13
14$intlcal = IntlCalendar::createInstance('UTC');
15var_dump($intlcal->isWeekend(strtotime('2012-02-29 12:00:00 +0000') * 1000));
16var_dump(intlcal_is_weekend($intlcal, strtotime('2012-02-29 12:00:00 +0000') * 1000));
17var_dump($intlcal->isWeekend(strtotime('2012-03-11 12:00:00 +0000') * 1000));
18?>
19--EXPECT--
20bool(false)
21bool(false)
22bool(true)
23