blob: d189d41da3e4e5a411324133197149f71d7eaba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
SPL: FixedArray: accessing uninitialized array
--FILE--
<?php
try {
$a = new SplFixedArray('');
} catch (TypeException $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
echo "Done\n";
?>
--EXPECTF--
Ok - SplFixedArray::__construct() expects parameter 1 to be integer, string given
Done
|