Use this class to make persistent changes to the global config.json. Whenever you call methods in this class, the changes will be written to disk.
Since: 1.0
Author: Bernhard Schussek (bschussek@gmail.com)
Inheritance: extends Puli\Manager\Config\AbstractConfigManager, implements Puli\Manager\Api\Config\ConfigFileManager
 public function testClearConfigKeysRevertsIfSavingNotPossible()
 {
     $this->configFile->getConfig()->set(Config::PULI_DIR, 'my-puli-dir');
     $this->configFileStorage->expects($this->once())->method('saveConfigFile')->willThrowException(new TestException());
     try {
         $this->manager->clearConfigKeys();
         $this->fail('Expected a TestException');
     } catch (TestException $e) {
     }
     $this->assertTrue($this->configFile->getConfig()->contains(Config::PULI_DIR));
     $this->assertFalse($this->configFile->getConfig()->contains(Config::FACTORY_IN_FILE));
     $this->assertSame('my-puli-dir', $this->configFile->getConfig()->get(Config::PULI_DIR));
 }