public function testSetDelimiter() { $this->assertInstanceOf('\\Magento\\Framework\\File\\Csv', $this->_model->setDelimiter(',')); }
/** * Retrieve data from file * * @param string $file * @return array */ protected function _getFileData($file) { $data = []; if ($this->directory->isExist($this->directory->getRelativePath($file))) { $this->_csvParser->setDelimiter(','); $data = $this->_csvParser->getDataPairs($file); } return $data; }
protected function setUp() { $this->csvParser = new \Magento\Framework\File\Csv(); $this->csvParser->setDelimiter(','); }