xref: /php-src/ext/fileinfo/tests/bug61173.phpt (revision bd9f4fa6)
1--TEST--
2Bug #61173: Unable to detect error from finfo constructor
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7
8try {
9    $finfo = new finfo(1, '', false);
10    var_dump($finfo);
11} catch (TypeError $e) {
12    echo $e->getMessage(), "\n";
13}
14?>
15--EXPECT--
16finfo::__construct() expects at most 2 arguments, 3 given
17