1--TEST--
2IntlCalendar::setSkipped/RepeatedWallTimeOption(): bad arguments
3--INI--
4date.timezone=Atlantic/Azores
5--EXTENSIONS--
6intl
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11$c = new IntlGregorianCalendar(NULL, 'pt_PT');
12
13try {
14    var_dump($c->setSkippedWallTimeOption(3));
15} catch (\ValueError $e) {
16    echo $e->getMessage() . \PHP_EOL;
17}
18try {
19    var_dump($c->setRepeatedWallTimeOption(2));
20} catch (\ValueError $e) {
21    echo $e->getMessage() . \PHP_EOL;
22}
23
24try {
25    var_dump(intlcal_set_repeated_wall_time_option(1, 1));
26} catch (\TypeError $e) {
27    echo $e->getMessage() . \PHP_EOL;
28}
29?>
30--EXPECT--
31IntlCalendar::setSkippedWallTimeOption(): Argument #1 ($option) must be one of IntlCalendar::WALLTIME_FIRST, IntlCalendar::WALLTIME_LAST, or IntlCalendar::WALLTIME_NEXT_VALID
32IntlCalendar::setRepeatedWallTimeOption(): Argument #1 ($option) must be either IntlCalendar::WALLTIME_FIRST or IntlCalendar::WALLTIME_LAST
33intlcal_set_repeated_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given
34