public function it_calls_the_iterator_factory(FileIteratorFactory $iteratorFactory)
 {
     $values = array('value1', 'value2', 'value3');
     $iteratorFactory->create('iterator_class', 'file_path', array('iterator_options'))->willReturn(new ArrayIterator($values));
     $this->setFilePath('file_path');
     foreach ($values as $value) {
         $this->read()->shouldReturn($value);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function createIterator()
 {
     return $this->iteratorFactory->create($this->iteratorClass, $this->filePath, $this->getIteratorOptions());
 }