/** * @dataProvider sampleNumbers */ public function testResumesIterationAfterConvertingToArray($numbers) { $set = new Set(\Cassandra::TYPE_INT); foreach ($numbers as $number) { $set->add($number); } $this->assertEquals(1, $set->current()); $set->next(); $this->assertEquals(2, $set->current()); $set->next(); $this->assertEquals(3, $set->current()); $set->values(); $set->next(); $this->assertEquals(4, $set->current()); $set->next(); $this->assertEquals(5, $set->current()); $set->next(); $this->assertEquals(6, $set->current()); }