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