/** * Get reader instance * * @return \Magento\Framework\ObjectManager\Config\Reader\Dom */ protected function _getReader() { if (empty($this->_reader)) { $this->_reader = $this->_readerFactory->create(); } return $this->_reader; }
public function testCreate() { $this->_objectManager->expects($this->once())->method('create')->with('Magento\\Framework\\ObjectManager\\Config\\Reader\\Dom')->will($this->returnValue($this->_object)); $this->_factory->create([1]); }