1--TEST--
2IntlCalendar::getWeekendTransition(): 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
15try {
16    var_dump($c->getWeekendTransition(0));
17} catch (\ValueError $e) {
18    echo $e->getMessage() . \PHP_EOL;
19}
20
21try {
22    var_dump(intlcal_get_weekend_transition(1, 1));
23} catch (\TypeError $e) {
24    echo $e->getMessage() . \PHP_EOL;
25}
26
27?>
28--EXPECT--
29IntlCalendar::getWeekendTransition(): Argument #1 ($dayOfWeek) must be a valid day of the week
30intlcal_get_weekend_transition(): Argument #1 ($calendar) must be of type IntlCalendar, int given
31