xref: /PHP-8.0/ext/fileinfo/tests/bug61173.phpt (revision c5401854)
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?>
17--EXPECT--
18finfo::__construct() expects at most 2 arguments, 3 given
19