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