ru_php/ext/fileinfo/tests/bug61173.phpt

17 lines
305 B
PHP

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