1--TEST--
2IntlGregorianCalendar::isLeapYear(): basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "nl");
9
10date_default_timezone_set('Europe/Amsterdam');
11
12$intlcal = new IntlGregorianCalendar();
13
14var_dump($intlcal->isLeapYear(2012));
15var_dump($intlcal->isLeapYear(1900));
16
17var_dump(intlgregcal_is_leap_year($intlcal, 2012));
18var_dump(intlgregcal_is_leap_year($intlcal, 1900));
19?>
20--EXPECT--
21bool(true)
22bool(false)
23bool(true)
24bool(false)
24