1--TEST--
2IntlCalendar::getSkipped/RepeatedWallTimeOption(): bad arguments
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9if (version_compare(INTL_ICU_VERSION, '49') < 0)
10	die('skip for ICU 49+');
11--FILE--
12<?php
13ini_set("intl.error_level", E_WARNING);
14
15$c = new IntlGregorianCalendar(NULL, 'pt_PT');
16
17var_dump($c->getSkippedWallTimeOption(1));
18var_dump($c->getRepeatedWallTimeOption(1));
19
20var_dump(intlcal_get_skipped_wall_time_option($c, 1));
21var_dump(intlcal_get_repeated_wall_time_option($c, 1));
22
23var_dump(intlcal_get_skipped_wall_time_option(1));
24
25--EXPECTF--
26
27Warning: IntlCalendar::getSkippedWallTimeOption() expects exactly 0 parameters, 1 given in %s on line %d
28
29Warning: IntlCalendar::getSkippedWallTimeOption(): intlcal_get_skipped_wall_time_option: bad arguments in %s on line %d
30bool(false)
31
32Warning: IntlCalendar::getRepeatedWallTimeOption() expects exactly 0 parameters, 1 given in %s on line %d
33
34Warning: IntlCalendar::getRepeatedWallTimeOption(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d
35bool(false)
36
37Warning: intlcal_get_skipped_wall_time_option() expects exactly 1 parameter, 2 given in %s on line %d
38
39Warning: intlcal_get_skipped_wall_time_option(): intlcal_get_skipped_wall_time_option: bad arguments in %s on line %d
40bool(false)
41
42Warning: intlcal_get_repeated_wall_time_option() expects exactly 1 parameter, 2 given in %s on line %d
43
44Warning: intlcal_get_repeated_wall_time_option(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d
45bool(false)
46
47Catchable fatal error: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of IntlCalendar, integer given in %s on line %d
48