--TEST-- IntlCalendar::get/setSkippedWallTimeOption(): basic test --EXTENSIONS-- intl --FILE-- getSkippedWallTimeOption()); $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); echo "Should be 3h30\n"; var_dump( $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), $intlcal->get(IntlCalendar::FIELD_MINUTE) ); var_dump($intlcal->setSkippedWallTimeOption(IntlCalendar::WALLTIME_FIRST)); var_dump(intlcal_get_skipped_wall_time_option($intlcal)); $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); echo "Should be 1h30\n"; var_dump( $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), $intlcal->get(IntlCalendar::FIELD_MINUTE) ); var_dump(intlcal_set_skipped_wall_time_option($intlcal, IntlCalendar::WALLTIME_NEXT_VALID)); var_dump($intlcal->getSkippedWallTimeOption()); $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); echo "Should be 3h00\n"; var_dump( $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), $intlcal->get(IntlCalendar::FIELD_MINUTE) ); ?> --EXPECTF-- Deprecated: Calling IntlGregorianCalendar::__construct() with more than 2 arguments is deprecated, use either IntlGregorianCalendar::createFromDate() or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d int(0) Should be 3h30 int(3) int(30) bool(true) int(1) Should be 1h30 int(1) int(30) bool(true) int(2) Should be 3h00 int(3) int(0)