1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/intl/tests/msgfmt_format_error2.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

21 lines
458 B
PHP

--TEST--
MessageFormatter::format() inconsistent types in named argument
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$fmt = <<<EOD
{foo,number} {foo}
EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
?>
--EXPECTF--
Warning: MessageFormatter::format(): Inconsistent types declared for an argument in %s on line %d
bool(false)