Ejemplo n.º 1
0
 /**
  * Adds sections from one config to another
  * 
  * @param ConfigContainer $primary_config Primary config
  * @param ConfigContainer $secondary_config Secondary config
  * @return \ConfigContainer Primary config
  */
 private static function appendOneConfigSectionsToAnother(ConfigContainer $primary_config, ConfigContainer $secondary_config)
 {
     $primary_config->addSections($secondary_config->getSections());
     return $primary_config;
 }
Ejemplo n.º 2
0
 /**
  * @covers ConfigContainer::getSections
  */
 public function testGetSectionsReturnsEmptyArrayWhenNoSectionWasAddedToConfig()
 {
     $sections = $this->object->getSections();
     $this->assertEquals(array(), $sections);
 }