php-src/ext/spl/tests/fixedarray_015.phpt
2018-10-14 19:45:12 +02:00

17 lines
291 B
PHP

--TEST--
SPL: FixedArray: accessing uninitialized array
--FILE--
<?php
try {
$a = new SplFixedArray('');
} catch (TypeError $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
echo "Done\n";
?>
--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
Done