Ejemplo n.º 1
0
 public function testArgumentOverride()
 {
     $config = new Config(array('test' => 'foo'));
     $writer = new ArrayWriter();
     $writer->write($this->_tempName, $config);
     $config = new Config(include $this->_tempName);
     $this->assertEquals('foo', $config->test);
 }
Ejemplo n.º 2
0
 public function saveInstallationManifest()
 {
     if ($this->manifest->get('_dirty', false)) {
         unset($this->manifest->{'_dirty'});
         $path = $this->getOptions()->getManifestDir() . '/manifest.php';
         $writer = new ArrayWriter();
         $writer->write($path, $this->manifest);
     }
     return $this;
 }