Annotation of embedaddon/php/ext/spl/tests/SplFixedArray_setsize_grow.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SplFixedArray::setSize() grow
3: --CREDITS--
4: PHPNW Test Fest 2009 - Jordan Hatch
5: --FILE--
6: <?php
7:
8: echo "\n";
9:
10: $array = new SplFixedArray(2);
11:
12: $array[0] = "Value 1";
13: $array[1] = "Value 2";
14:
15: $array->setSize(4);
16:
17: $array[2] = "Value 3";
18: $array[3] = "Value 4";
19:
20: print_r($array);
21:
22: ?>
23: --EXPECT--
24: SplFixedArray Object
25: (
26: [0] => Value 1
27: [1] => Value 2
28: [2] => Value 3
29: [3] => Value 4
30: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>