public function toArray() { $c = $this->getCount(); $array = array(); for ($i = 0; $i < $c; ++$i) { $array[$i] = $this->itemAt($i); } return $array; }
public function testToArray() { $list = new TPagedList(array(1, 2, 3)); $list->CustomPaging = true; self::assertEquals(array(1, 2, 3), $list->toArray()); }