1--TEST--
2IntlCalendar::isLenient(): 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
13$c = new IntlGregorianCalendar(NULL, 'pt_PT');
14
15var_dump($c->isLenient(1));
16
17var_dump(intlcal_is_lenient($c, 1));
18var_dump(intlcal_is_lenient(1));
19
20--EXPECTF--
21
22Warning: IntlCalendar::isLenient() expects exactly 0 parameters, 1 given in %s on line %d
23
24Warning: IntlCalendar::isLenient(): intlcal_is_lenient: bad arguments in %s on line %d
25bool(false)
26
27Warning: intlcal_is_lenient() expects exactly 1 parameter, 2 given in %s on line %d
28
29Warning: intlcal_is_lenient(): intlcal_is_lenient: bad arguments in %s on line %d
30bool(false)
31
32Catchable fatal error: Argument 1 passed to intlcal_is_lenient() must be an instance of IntlCalendar, integer given in %s on line %d
33