--TEST-- IntlCalendar::toDateTime(): bad arguments --SKIPIF-- toDateTime()); } catch (Exception $e) { var_dump("exception: {$e->getMessage()}"); } var_dump(intlcal_to_date_time(3)); --EXPECTF-- Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)" Fatal error: Uncaught TypeError: intlcal_to_date_time() expects parameter 1 to be IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_to_date_time(3) #1 {main} thrown in %s on line %d