1--TEST-- 2IntlCalendar::roll(): 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 11 12$c = new IntlGregorianCalendar(NULL, 'pt_PT'); 13 14try { 15 var_dump($c->roll(-1, 2)); 16} catch (\ValueError $e) { 17 echo $e->getMessage() . \PHP_EOL; 18} 19 20try { 21 var_dump(intlcal_roll(1, 2, 3)); 22} catch (\TypeError $e) { 23 echo $e->getMessage() . \PHP_EOL; 24} 25?> 26--EXPECTF-- 27IntlCalendar::roll(): Argument #1 ($field) must be a valid field 28intlcal_roll(): Argument #1 ($calendar) must be of type IntlCalendar, int given 29