Annotation of embedaddon/php/ext/spl/tests/SplFixedArray_setsize_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: FixedArray: setsize - populate array, then shrink
! 3: --CREDITS--
! 4: PHPNW TestFest2009 - Rowan Merewood <rowan@merewood.org>
! 5: --FILE--
! 6: <?php
! 7: $array = new SplFixedArray(5);
! 8: $array[0] = 'one';
! 9: $array[1] = 'two';
! 10: $array[2] = 'three';
! 11: $array[3] = 'four';
! 12: $array[4] = 'five';
! 13: $array->setSize(2);
! 14: var_dump($array);
! 15: ?>
! 16: --EXPECTF--
! 17: object(SplFixedArray)#1 (2) {
! 18: [0]=>
! 19: %string|unicode%(3) "one"
! 20: [1]=>
! 21: %string|unicode%(3) "two"
! 22: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>