php-src/ext/fileinfo/tests/bug61173.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

18 lines
354 B
PHP

--TEST--
Bug #61173: Unable to detect error from finfo constructor
--SKIPIF--
<?php
if (!class_exists('finfo'))
die('skip no fileinfo extension');
--FILE--
<?php
try {
$finfo = new finfo(1, '', false);
var_dump($finfo);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
--EXPECT--
finfo::finfo() expects at most 2 parameters, 3 given