Example #1
0
 /**
  * Enter description here...
  *
  * @param Config $config
  * @param boolean $overwrite
  * @return $this
  */
 public function extend(Config $config, $overwrite = true)
 {
     $this->getNode()->extend($config->getNode(), $overwrite);
     return $this;
 }
Example #2
0
 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());
 }