1--TEST--
2SPL: FixedArray: setsize - populate array, then shrink
3--CREDITS--
4PHPNW 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);
14var_dump($array);
15?>
16--EXPECTF--
17object(SplFixedArray)#1 (2) {
18  [0]=>
19  %string|unicode%(3) "one"
20  [1]=>
21  %string|unicode%(3) "two"
22}
23