1--TEST--
2IntlCalendar::get/getActualMaximum/getActualMinimum(): 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->get(-1));
14} catch (\ValueError $e) {
15    echo $e->getMessage() . \PHP_EOL;
16}
17try {
18    var_dump($c->getActualMaximum(-1));
19} catch (\ValueError $e) {
20    echo $e->getMessage() . \PHP_EOL;
21}
22try {
23    var_dump($c->getActualMinimum(-1));
24} catch (\ValueError $e) {
25    echo $e->getMessage() . \PHP_EOL;
26}
27
28?>
29--EXPECT--
30IntlCalendar::get(): Argument #1 ($field) must be a valid field
31IntlCalendar::getActualMaximum(): Argument #1 ($field) must be a valid field
32IntlCalendar::getActualMinimum(): Argument #1 ($field) must be a valid field
33