/** * 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; }
protected function provideConfig(array $options = array(), array $mocks = array()) { $mocks = !empty($mocks) ? $mocks : $this->provideMocks(); $config = new Config(); $config->apply($options); return $config; }