php-src/ext/intl/tests/msgfmt_format_error1.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

19 lines
346 B
PHP

--TEST--
MessageFormatter::format() insufficient numeric arguments
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$fmt = <<<EOD
{0} {1}
EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
--EXPECT--
string(5) "7 {1}"