xref: /PHP-5.4/ext/fileinfo/tests/bug61173.phpt (revision 5e80c05d)
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
10$finfo = new finfo(1, '', false);
11var_dump($finfo);
12--EXPECTF--
13Warning: finfo::finfo() expects at most 2 parameters, 3 given in %s on line %d
14NULL
15