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