mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
19 lines
244 B
PHP
19 lines
244 B
PHP
--TEST--
|
|
SPL: FixedArray: adding new elements
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = new SplFixedArray(10);
|
|
|
|
try {
|
|
$a[] = 1;
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(29) "Index invalid or out of range"
|
|
===DONE===
|