1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/intl/tests/msgfmt_format_error1.phpt

19 lines
270 B
PHP

--TEST--
MessageFormatter::format() insufficient numeric arguments
--EXTENSIONS--
intl
--INI--
intl.use_exceptions=On
--FILE--
<?php
$fmt = <<<EOD
{0} {1}
EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
?>
--EXPECT--
string(5) "7 {1}"