public function it_creates_row_iterators(RowIteratorFactory $rowIteratorFactory, RowIterator $rowIterator1, RowIterator $rowIterator2) { $rowIteratorFactory->create('path', ['options1'])->willReturn($rowIterator1); $rowIteratorFactory->create('path', ['options2'])->willReturn($rowIterator2); $this->createRowIterator(0, ['options1'])->shouldReturn($rowIterator1); $this->createRowIterator(1, ['options2'])->shouldReturn($rowIterator2); }
/** * {@inheritdoc} */ public function createRowIterator($worksheetIndex, array $options = []) { return $this->rowIteratorFactory->create($this->path, $options); }