Annotation of embedaddon/php/ext/spl/tests/bug54292.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
                      3: --FILE--
                      4: <?php
                      5: 
                      6: try {
                      7:        new SplFileObject('foo', array());
                      8: } catch (Exception $e) {
                      9:        var_dump($e->getMessage());
                     10: }
                     11: 
                     12: ?>
                     13: --EXPECTF--
                     14: string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>