/**
  * @dataProvider configurationExtensions
  */
 public function testSettingValuesUpdatesTheConfigurationFiles($extension, $parser)
 {
     $val = mt_rand();
     $path = 'writetest:one:two:three';
     $cache = new RuntimeCache();
     $this->conf->setCache($cache);
     $this->conf->setExtension($extension);
     $this->conf->setParser($parser);
     $this->conf->setDirectory(__DIR__);
     $this->conf->set($path, $val);
     $data = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'writetest' . $extension);
     $this->assertTrue(strpos($data, (string) $val) !== false);
 }