1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Files
archived-php-src/ext/fileinfo/tests/bug61173.phpt
T
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

19 lines
365 B
PHP

--TEST--
Bug #61173: Unable to detect error from finfo constructor
--SKIPIF--
<?php
if (!class_exists('finfo'))
die('skip no fileinfo extension');
--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