/**
  * @param array $configurationValues
  * @param string $expectedConfiguration
  * @dataProvider dataProviderForTestGetConfiguration
  */
 public function testGetConfiguration(array $configurationValues, $expectedConfiguration)
 {
     $sut = new SfxConfiguration($configurationValues['Title']);
     unset($configurationValues['Title']);
     foreach ($configurationValues as $key => $value) {
         $setMethod = 'set' . $key;
         $sut->{$setMethod}($value);
     }
     $this->assertEquals($expectedConfiguration, $sut->getConfiguration());
 }
 /**
  * Sets the installer finish message for those non runnable contents.
  * @param SfxConfiguration $configuration
  */
 public function setFinishMessageForNonRunnableFiles(SfxConfiguration &$configuration)
 {
     $configuration->setFinishMessage('Files have been successfully extracted in the path that you selected.');
 }
 /**
  * Generate a windows executable self-extracting file.
  * @param string $_7zCompressedFile Path to a 7z compressed file.
  * @param SfxConfiguration $configuration Object that contains the configuration to generate the self-extracting file.
  * @param string $destinationPath Path to desired destination self-extracting file.
  */
 public function generateSfxFile($_7zCompressedFile, SfxConfiguration $configuration, $destinationPath)
 {
     $_7zConfigurationTmpfile = tempnam(sys_get_temp_dir(), '7z_');
     file_put_contents($_7zConfigurationTmpfile, $configuration->getConfiguration());
     $this->commadRunner->execute($this->getSfxGeneratorCommand($_7zCompressedFile, $_7zConfigurationTmpfile, $destinationPath));
     unlink($_7zConfigurationTmpfile);
 }