Annotation of embedaddon/php/ext/spl/tests/SplFixedArray_setSize_filled_to_smaller.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Create array, fills it with and resizes it to lower value.
3: --CREDITS--
4: Philip Norton philipnorton42@gmail.com
5: --FILE--
6: <?php
7: $array = new SplFixedArray(5);
8: $array[0] = 1;
9: $array[1] = 1;
10: $array[2] = 1;
11: $array[3] = 1;
12: $array[4] = 1;
13: $array->setSize(2);
14: var_dump($array);
15: ?>
16: --EXPECT--
17: object(SplFixedArray)#1 (2) {
18: [0]=>
19: int(1)
20: [1]=>
21: int(1)
22: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>