xref: /PHP-7.3/ext/spl/tests/fixedarray_015.phpt (revision 782352c5)
1--TEST--
2SPL: FixedArray: accessing uninitialized array
3--FILE--
4<?php
5
6try {
7	$a = new SplFixedArray('');
8} catch (TypeError $iae) {
9	echo "Ok - ".$iae->getMessage().PHP_EOL;
10}
11
12echo "Done\n";
13?>
14--EXPECT--
15Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
16Done
17