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