/** * 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; }
/** * @covers ConfigContainer::getSections */ public function testGetSectionsReturnsEmptyArrayWhenNoSectionWasAddedToConfig() { $sections = $this->object->getSections(); $this->assertEquals(array(), $sections); }