Annotation of embedaddon/php/ext/spl/tests/SplFixedArray_setsize_shrink.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: shrink a full array of integers
3: --CREDITS--
4: PHPNW Testfest 2009 - Lorna Mitchell
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:
14: $array->setSize(4);
15: var_dump($array);
16:
17: ?>
18: --EXPECT--
19: object(SplFixedArray)#1 (4) {
20: [0]=>
21: int(1)
22: [1]=>
23: int(1)
24: [2]=>
25: int(1)
26: [3]=>
27: int(1)
28: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>