protected function writeConfig(array $config, array $merge = []) {
    if ($merge) {
      $config = $this->merge($merge, $config);
    }

    $success = file_put_contents($this->configPath, Yaml::encode($config));

    if ($success === FALSE) {
      throw new \RuntimeException('Could not write ' . $this->configPath);
    }
  }
protected function writeConfig(array $config, array $merge = []) {
    if ($merge) {
      $config = $this->merge($merge, $config);
    }

    $success = file_put_contents($this->configPath, Yaml::encode($config));

    if ($success === FALSE) {
      throw new \RuntimeException('Could not write ' . $this->configPath);
    }
  }
protected function writeConfig ( array $ config , array $ merge = [ ] ) { if ( $ merge ) { $ config = $ this -> merge ( $ merge , $ config ) ; } $ success = file_put_contents ( $ this -> configPath , Yaml :: encode ( $ config ) ) ; if ( $ success === FALSE ) { throw new \ RuntimeException ( 'Could not write ' . $ this -> configPath ) ; } }
Writes aggregated Behat configuration.

Expects $this->configPath to be set and exist in the file system.
Normally ::initialize() will set this from the --config option.

@param array $config
The Behat configuration to write.
@param string[] $merge
(optional) A set of paths of partials to merge into the aggregated
configuration before writing.
Writes aggregated Behat configuration .