mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
14 lines
309 B
PHP
14 lines
309 B
PHP
--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;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Ok - SplFixedArray::__construct() expects parameter 1 to be integer, string given
|