示例#1
0
 public function testConfigurationFileIsWrite()
 {
     $originalConfig = array('a' => array(0 => 'b', array('c', 'd', 1), 123456), 'b' => true);
     $configDumper = new ConfigurationDumper(new ConfigCache($this->configFile, true));
     $configDumper->dump($originalConfig);
     require $this->configFile;
     $this->assertEquals($originalConfig, $config);
 }
示例#2
0
 private function loadFreshConfig($configDir)
 {
     $parser = $this->getParser($configDir);
     $dumper = new ConfigurationDumper($this->configCache);
     $dumper->dump($parser->getConfig(), $parser->getResources());
 }