[Nostromo] Refactor Tests

This commit is contained in:
Andrés Montañez
2017-01-04 21:46:40 -03:00
parent fa09553f7f
commit b56e1c378c
23 changed files with 640 additions and 1031 deletions
@@ -33,7 +33,7 @@ class InstallTask extends AbstractTask
public function execute()
{
$options = $this->getOptions();
$command = $options['path'] . ' install ' . $options['flags'];
$command = trim($options['path'] . ' install ' . $options['flags']);
/** @var Process $process */
$process = $this->runtime->runCommand($command);
@@ -45,7 +45,7 @@ class InstallTask extends AbstractTask
{
$userOptions = $this->runtime->getConfigOptions('composer', []);
$options = array_merge(
['path' => 'composer', 'flags' => '--dev'],
['path' => 'composer', 'flags' => ''],
(is_array($userOptions) ? $userOptions : []),
$this->options
);