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