📄 Viewing: fixedarray_009.phpt

--TEST--
SPL: FixedArray: Trying to instantiate passing string to construtor parameter
--FILE--
<?php

try {
	$a = new SplFixedArray('FOO');
} catch (TypeError $iae) {
	echo "Ok - ".$iae->getMessage().PHP_EOL;
}
?>
--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/ext/spl/tests