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 11ini_set("intl.error_level", E_WARNING); 12 13$c = new IntlGregorianCalendar(NULL, 'pt_PT'); 14 15var_dump($c->get()); 16var_dump($c->getActualMaximum()); 17var_dump($c->getActualMinimum()); 18 19var_dump($c->get(-1)); 20var_dump($c->getActualMaximum(-1)); 21var_dump($c->getActualMinimum(-1)); 22 23var_dump($c->get("s")); 24var_dump($c->getActualMaximum("s")); 25var_dump($c->getActualMinimum("s")); 26 27var_dump($c->get(1, 2)); 28var_dump($c->getActualMaximum(1, 2)); 29var_dump($c->getActualMinimum(1, 2)); 30--EXPECTF-- 31Warning: IntlCalendar::get() expects exactly 1 parameter, 0 given in %s on line %d 32 33Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d 34bool(false) 35 36Warning: IntlCalendar::getActualMaximum() expects exactly 1 parameter, 0 given in %s on line %d 37 38Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: bad arguments in %s on line %d 39bool(false) 40 41Warning: IntlCalendar::getActualMinimum() expects exactly 1 parameter, 0 given in %s on line %d 42 43Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: bad arguments in %s on line %d 44bool(false) 45 46Warning: IntlCalendar::get(): intlcal_get: invalid field in %s on line %d 47bool(false) 48 49Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: invalid field in %s on line %d 50bool(false) 51 52Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: invalid field in %s on line %d 53bool(false) 54 55Warning: IntlCalendar::get() expects parameter 1 to be integer, string given in %s on line %d 56 57Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d 58bool(false) 59 60Warning: IntlCalendar::getActualMaximum() expects parameter 1 to be integer, string given in %s on line %d 61 62Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: bad arguments in %s on line %d 63bool(false) 64 65Warning: IntlCalendar::getActualMinimum() expects parameter 1 to be integer, string given in %s on line %d 66 67Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: bad arguments in %s on line %d 68bool(false) 69 70Warning: IntlCalendar::get() expects exactly 1 parameter, 2 given in %s on line %d 71 72Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d 73bool(false) 74 75Warning: IntlCalendar::getActualMaximum() expects exactly 1 parameter, 2 given in %s on line %d 76 77Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: bad arguments in %s on line %d 78bool(false) 79 80Warning: IntlCalendar::getActualMinimum() expects exactly 1 parameter, 2 given in %s on line %d 81 82Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: bad arguments in %s on line %d 83bool(false) 84