1--TEST--
2IntlGregorianCalendar::isLeapYear(): bad arguments
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);
12
13var_dump(intlgregcal_is_leap_year(1, 2));
14
15?>
16--EXPECTF--
17Fatal error: Uncaught TypeError: intlgregcal_is_leap_year(): Argument #1 ($calendar) must be of type IntlGregorianCalendar, int given in %s:%d
18Stack trace:
19#0 %s(%d): intlgregcal_is_leap_year(1, 2)
20#1 {main}
21  thrown in %s on line %d
22