function testIterateWithPaginationNonZeroOffset() { $iterator = new lmbArrayIterator(array('a', 'b', 'c', 'd', 'e')); $iterator->paginate($offset = 2, $limit = 2); $iterator->rewind(); $this->assertEqual($iterator->current(), 'c'); $iterator->next(); $this->assertEqual($iterator->current(), 'd'); }