1--TEST-- 2IntlCalendar::getDayOfWeekOfType(): bad arguments 3--INI-- 4date.timezone=Atlantic/Azores 5--EXTENSIONS-- 6intl 7--FILE-- 8<?php 9$c = new IntlGregorianCalendar(NULL, 'pt_PT'); 10 11try { 12 var_dump($c->getDayOfWeekType(0)); 13} catch (\ValueError $e) { 14 echo $e->getMessage() . \PHP_EOL; 15} 16 17try { 18 var_dump(intlcal_get_day_of_week_type(1, 1)); 19} catch (\TypeError $e) { 20 echo $e->getMessage() . \PHP_EOL; 21} 22?> 23--EXPECT-- 24IntlCalendar::getDayOfWeekType(): Argument #1 ($dayOfWeek) must be a valid day of the week 25intlcal_get_day_of_week_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given 26