public function testConvert() { $fixturePath = __DIR__ . '/_files/'; $dom = new \DOMDocument(); $dom->loadXML(file_get_contents($fixturePath . 'config.xml')); $expectedResult = (include $fixturePath . 'converted_config.php'); $this->assertEquals($expectedResult, $this->_model->convert($dom)); }
/** * {@inheritdoc} */ public function convert($source) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'convert'); if (!$pluginInfo) { return parent::convert($source); } else { return $this->___callPlugins('convert', func_get_args(), $pluginInfo); } }