1--TEST--
2IntlCalendar::isSet(): 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
11
12$c = new IntlGregorianCalendar(NULL, 'pt_PT');
13
14try {
15    var_dump($c->isSet(-1));
16} catch (\ValueError $e) {
17    echo $e->getMessage() . \PHP_EOL;
18}
19
20try {
21    var_dump(intlcal_is_set(1, 2));
22} catch (\TypeError $e) {
23    echo $e->getMessage() . \PHP_EOL;
24}
25?>
26--EXPECT--
27IntlCalendar::isSet(): Argument #1 ($field) must be a valid field
28intlcal_is_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given
29