public function test_Should_UpdateExistingAppSettings()
{
vfsStream::newFile('.env')->at($this->rootDir);
$dotenvReader = new DotenvReader(new LaravelFilesystem($this->app['files']), vfsStream::url('rootDir/.env'));
$dotenvWriter = new DotenvWriter(new LaravelFilesystem($this->app['files']), vfsStream::url('rootDir/.env'));
$configAppSettingRepository = new ConfigAppSetting($dotenvReader, $dotenvWriter);
$configAppSettingRepository->update(['url' => 'http://example.com']);
$this->assertEquals('http://example.com', $dotenvReader->getConfig('APP_URL'));
}