public function testExtendNode() { $config = new Config(__DIR__ . '/_files/data.xml'); $config->extend(new Config('<config><node>1</node></config>')); $this->assertSame('1', $config->getNode('node')->asArray()); }
/** * Enter description here... * * @param \Magento\Framework\Simplexml\Config $config * @param boolean $overwrite * @return $this */ public function extend(\Magento\Framework\Simplexml\Config $config, $overwrite = true) { $this->getNode()->extend($config->getNode(), $overwrite); return $this; }