/** * @dataProvider thingProvider * @param $patches */ public function testGetIterator($patches) { $collection = new Collection($patches); $this->assertEquals(new \ArrayIterator($patches), $collection->getIterator()); }