1--TEST--
2IntlCalendar::isSet(): bad arguments
3--INI--
4date.timezone=Atlantic/Azores
5--EXTENSIONS--
6intl
7--FILE--
8<?php
9
10$c = new IntlGregorianCalendar(NULL, 'pt_PT');
11
12try {
13    var_dump($c->isSet(-1));
14} catch (\ValueError $e) {
15    echo $e->getMessage() . \PHP_EOL;
16}
17
18try {
19    var_dump(intlcal_is_set(1, 2));
20} catch (\TypeError $e) {
21    echo $e->getMessage() . \PHP_EOL;
22}
23?>
24--EXPECT--
25IntlCalendar::isSet(): Argument #1 ($field) must be a valid field
26intlcal_is_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given
27