--TEST-- IntlDateFormatter::setTimeZone() bad args --SKIPIF-- setTimeZone(array())); var_dump($df->setTimeZone('non existing timezone')); ?> ==DONE== --EXPECTF-- Notice: Array to string conversion in %s on line %d Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: no such time zone: 'Array' in %s on line %d bool(false) Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: no such time zone: 'non existing timezone' in %s on line %d bool(false) ==DONE==