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--EXPECTF--
25Warning: IntlCalendar::getSkippedWallTimeOption() expects exactly 0 parameters, 1 given in %s on line %d
26
27Warning: IntlCalendar::getSkippedWallTimeOption(): intlcal_get_skipped_wall_time_option: bad arguments in %s on line %d
28bool(false)
29
30Warning: IntlCalendar::getRepeatedWallTimeOption() expects exactly 0 parameters, 1 given in %s on line %d
31
32Warning: IntlCalendar::getRepeatedWallTimeOption(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d
33bool(false)
34
35Warning: intlcal_get_skipped_wall_time_option() expects exactly 1 parameter, 2 given in %s on line %d
36
37Warning: intlcal_get_skipped_wall_time_option(): intlcal_get_skipped_wall_time_option: bad arguments in %s on line %d
38bool(false)
39
40Warning: intlcal_get_repeated_wall_time_option() expects exactly 1 parameter, 2 given in %s on line %d
41
42Warning: intlcal_get_repeated_wall_time_option(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d
43bool(false)
44
45Fatal error: Uncaught TypeError: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of IntlCalendar, integer given in %s:%d
46Stack trace:
47#0 %s(%d): intlcal_get_skipped_wall_time_option(1)
48#1 {main}
49  thrown in %s on line %d
50