1--TEST--
2IntlCalendar::setLenient(): 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->setLenient());
16var_dump($c->setLenient(array()));
17var_dump($c->setLenient(1, 2));
18
19var_dump(intlcal_set_lenient($c, array()));
20var_dump(intlcal_set_lenient(1, false));
21
22--EXPECTF--
23
24Warning: IntlCalendar::setLenient() expects exactly 1 parameter, 0 given in %s on line %d
25
26Warning: IntlCalendar::setLenient(): intlcal_set_lenient: bad arguments in %s on line %d
27bool(false)
28
29Warning: IntlCalendar::setLenient() expects parameter 1 to be boolean, array given in %s on line %d
30
31Warning: IntlCalendar::setLenient(): intlcal_set_lenient: bad arguments in %s on line %d
32bool(false)
33
34Warning: IntlCalendar::setLenient() expects exactly 1 parameter, 2 given in %s on line %d
35
36Warning: IntlCalendar::setLenient(): intlcal_set_lenient: bad arguments in %s on line %d
37bool(false)
38
39Warning: intlcal_set_lenient() expects parameter 2 to be boolean, array given in %s on line %d
40
41Warning: intlcal_set_lenient(): intlcal_set_lenient: bad arguments in %s on line %d
42bool(false)
43
44Catchable fatal error: Argument 1 passed to intlcal_set_lenient() must be an instance of IntlCalendar, integer given in %s on line %d
45