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

19 lines
246 B
Plaintext
Raw Normal View History

2008-06-07 14:10:21 +00:00
--TEST--
SPL: FixedArray: adding new elements
2008-06-07 14:10:21 +00:00
--FILE--
<?php
$a = new SplFixedArray(10);
2008-06-07 14:10:21 +00:00
try {
$a[] = 1;
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
===DONE===
--EXPECTF--
unicode(29) "Index invalid or out of range"
===DONE===