mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
17 lines
370 B
PHP
17 lines
370 B
PHP
--TEST--
|
|
SplFixedArray::__construct() with string passed as parameter.
|
|
--CREDITS--
|
|
PHPNW Test Fest 2009 - Jordan Hatch
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$array = new SplFixedArray( "string" );
|
|
} catch (TypeError $iae) {
|
|
echo "Ok - ".$iae->getMessage().PHP_EOL;
|
|
}
|
|
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Ok - SplFixedArray::__construct() expects parameter 1 to be integer, %unicode_string_optional% given
|