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