php-src/ext/spl/tests/fixedarray_009.phpt

11 lines
250 B
PHP

--TEST--
SPL: FixedArray: Trying to instantiate passing string to construtor parameter
--FILE--
<?php
$a = new SplFixedArray('FOO');
?>
--EXPECTF--
Warning: SplFixedArray::__construct() expects parameter 1 to be long, string given in %s on line %d