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