/** * @covers ::__construct * @covers ::getLoadedFiles */ public function testEmptyConfigInstance() { $mocks = $this->provideMocks(); $config = new Config(); $this->assertInternalType('array', $config->getLoadedFiles()); $this->assertEmpty($config->getLoadedFiles()); }
/** * Extends the config with the given config. * * @param Config $config Config to read from. * @return bool */ public function extend(Config $config) { $this->config = ArrayUtils::merge($this->config, $config->getNamespace()); $this->loadedFiles = array_merge($this->loadedFiles, $config->getLoadedFiles()); return true; }