1--TEST--
2IntlCalendar::setSkipped/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->setSkippedWallTimeOption());
18var_dump($c->setRepeatedWallTimeOption());
19
20var_dump($c->setSkippedWallTimeOption(1, 2));
21var_dump($c->setRepeatedWallTimeOption(1, 2));
22
23var_dump($c->setSkippedWallTimeOption(array()));
24var_dump($c->setRepeatedWallTimeOption(array()));
25
26var_dump($c->setSkippedWallTimeOption(3));
27var_dump($c->setRepeatedWallTimeOption(2));
28
29var_dump(intlcal_set_skipped_wall_time_option($c));
30var_dump(intlcal_set_repeated_wall_time_option($c));
31
32var_dump(intlcal_set_repeated_wall_time_option(1, 1));
33--EXPECTF--
34Warning: IntlCalendar::setSkippedWallTimeOption() expects exactly 1 parameter, 0 given in %s on line %d
35
36Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad arguments in %s on line %d
37bool(false)
38
39Warning: IntlCalendar::setRepeatedWallTimeOption() expects exactly 1 parameter, 0 given in %s on line %d
40
41Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: bad arguments in %s on line %d
42bool(false)
43
44Warning: IntlCalendar::setSkippedWallTimeOption() expects exactly 1 parameter, 2 given in %s on line %d
45
46Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad arguments in %s on line %d
47bool(false)
48
49Warning: IntlCalendar::setRepeatedWallTimeOption() expects exactly 1 parameter, 2 given in %s on line %d
50
51Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: bad arguments in %s on line %d
52bool(false)
53
54Warning: IntlCalendar::setSkippedWallTimeOption() expects parameter 1 to be int, array given in %s on line %d
55
56Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad arguments in %s on line %d
57bool(false)
58
59Warning: IntlCalendar::setRepeatedWallTimeOption() expects parameter 1 to be int, array given in %s on line %d
60
61Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: bad arguments in %s on line %d
62bool(false)
63
64Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: invalid option in %s on line %d
65bool(false)
66
67Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: invalid option in %s on line %d
68bool(false)
69
70Warning: intlcal_set_skipped_wall_time_option() expects exactly 2 parameters, 1 given in %s on line %d
71
72Warning: intlcal_set_skipped_wall_time_option(): intlcal_set_skipped_wall_time_option: bad arguments in %s on line %d
73bool(false)
74
75Warning: intlcal_set_repeated_wall_time_option() expects exactly 2 parameters, 1 given in %s on line %d
76
77Warning: intlcal_set_repeated_wall_time_option(): intlcal_set_repeated_wall_time_option: bad arguments in %s on line %d
78bool(false)
79
80Fatal error: Uncaught TypeError: Argument 1 passed to intlcal_set_repeated_wall_time_option() must be an instance of IntlCalendar, int given in %s:%d
81Stack trace:
82#0 %s(%d): intlcal_set_repeated_wall_time_option(1, 1)
83#1 {main}
84  thrown in %s on line %d
85