xref: /PHP-7.1/ext/fileinfo/tests/bug61173.phpt (revision 64b167d2)
1--TEST--
2Bug #61173: Unable to detect error from finfo constructor
3--SKIPIF--
4<?php
5if (!class_exists('finfo'))
6	die('skip no fileinfo extension');
7--FILE--
8<?php
9
10try {
11    $finfo = new finfo(1, '', false);
12    var_dump($finfo);
13} catch (TypeError $e) {
14    echo $e->getMessage(), "\n";
15}
16--EXPECTF--
17finfo::finfo() expects at most 2 parameters, 3 given
18