コード例 #1
0
ファイル: ConfigTest.php プロジェクト: splot/framework
 /**
  * @covers ::__construct
  * @covers ::getLoadedFiles
  */
 public function testEmptyConfigInstance()
 {
     $mocks = $this->provideMocks();
     $config = new Config();
     $this->assertInternalType('array', $config->getLoadedFiles());
     $this->assertEmpty($config->getLoadedFiles());
 }
コード例 #2
0
ファイル: Config.php プロジェクト: splot/framework
 /**
  * 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;
 }