xref: /php-src/ext/spl/tests/fixedarray_004.phpt (revision e9e06279)
1--TEST--
2SPL: FixedArray: adding new elements
3--FILE--
4<?php
5
6$a = new SplFixedArray(10);
7
8try {
9    $a[] = 1;
10} catch (Error $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECT--
16[] operator not supported for SplFixedArray
17