xref: /PHP-7.4/ext/spl/tests/bug54292.phpt (revision ded3d984)
1--TEST--
2Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
3--FILE--
4<?php
5
6try {
7	new SplFileObject('foo', array());
8} catch (TypeError $e) {
9	var_dump($e->getMessage());
10}
11
12?>
13--EXPECT--
14string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"
15