1--TEST-- 2IntlCalendar::getTime(): 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->getTime(1)); 16 17var_dump(intlcal_get_time($c, 1)); 18var_dump(intlcal_get_time(1)); 19--EXPECTF-- 20 21Warning: IntlCalendar::getTime() expects exactly 0 parameters, 1 given in %s on line %d 22 23Warning: IntlCalendar::getTime(): intlcal_get_time: bad arguments in %s on line %d 24bool(false) 25 26Warning: intlcal_get_time() expects exactly 1 parameter, 2 given in %s on line %d 27 28Warning: intlcal_get_time(): intlcal_get_time: bad arguments in %s on line %d 29bool(false) 30 31Catchable fatal error: Argument 1 passed to intlcal_get_time() must be an instance of IntlCalendar, integer given in %s on line %d 32