public function testSet()
{
$app = $this->getApp();
$filesystem = new Filesystem(new Local(PHPUNIT_ROOT . '/resources/'));
$app['filesystem']->mountFilesystem('config', $filesystem);
$command = new ConfigSet($app);
$tester = new CommandTester($command);
// Test successful update
$tester->execute(['key' => 'sitename', 'value' => 'my test', '--file' => 'config.yml']);
$this->assertRegExp('/New value for sitename: my test was successful/', $tester->getDisplay());
// Test non-existent fails
$tester->execute(['key' => 'nonexistent', 'value' => 'test', '--file' => 'config.yml']);
$this->assertEquals("The key 'nonexistent' was not found in config.yml.\n", $tester->getDisplay());
}