php-src/ext/spl/tests/fixedarray_004.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

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===