xref: /php-src/ext/spl/tests/gh15918.phpt (revision 9774cedb)
1--TEST--
2GH-15918 (Assertion failure in ext/spl/spl_fixedarray.c)
3--FILE--
4<?php
5$foo = new SplFixedArray(5);
6try {
7    $arrayObject = new ArrayObject($foo);
8} catch (InvalidArgumentException $e) {
9    echo $e->getMessage(), "\n";
10}
11?>
12--EXPECT--
13Overloaded object of type SplFixedArray is not compatible with ArrayObject
14