1--TEST-- 2IntlCalendar::getSkipped/RepeatedWallTimeOption(): 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->getSkippedWallTimeOption(1)); 16var_dump($c->getRepeatedWallTimeOption(1)); 17 18var_dump(intlcal_get_skipped_wall_time_option($c, 1)); 19var_dump(intlcal_get_repeated_wall_time_option($c, 1)); 20 21var_dump(intlcal_get_skipped_wall_time_option(1)); 22--EXPECTF-- 23Warning: IntlCalendar::getSkippedWallTimeOption() expects exactly 0 parameters, 1 given in %s on line %d 24 25Warning: IntlCalendar::getSkippedWallTimeOption(): intlcal_get_skipped_wall_time_option: bad arguments in %s on line %d 26bool(false) 27 28Warning: IntlCalendar::getRepeatedWallTimeOption() expects exactly 0 parameters, 1 given in %s on line %d 29 30Warning: IntlCalendar::getRepeatedWallTimeOption(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d 31bool(false) 32 33Warning: intlcal_get_skipped_wall_time_option() expects exactly 1 parameter, 2 given in %s on line %d 34 35Warning: intlcal_get_skipped_wall_time_option(): intlcal_get_skipped_wall_time_option: bad arguments in %s on line %d 36bool(false) 37 38Warning: intlcal_get_repeated_wall_time_option() expects exactly 1 parameter, 2 given in %s on line %d 39 40Warning: intlcal_get_repeated_wall_time_option(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d 41bool(false) 42 43Fatal error: Uncaught TypeError: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of IntlCalendar, int given in %s:%d 44Stack trace: 45#0 %s(%d): intlcal_get_skipped_wall_time_option(1) 46#1 {main} 47 thrown in %s on line %d 48