Skip to content

Commit

Permalink
Merge pull request #6 from Padam87/options_bugfix
Browse files Browse the repository at this point in the history
Fixed phantomjs options associative config
  • Loading branch information
Padam87 committed Aug 28, 2015
2 parents 7a41b8c + cee338c commit a427fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ConfigHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ protected function processPhantomjsOptions()
if (is_bool($value)) {
$value = ($value) ? 'true' : 'false';
}
$options[] = sprintf('%s="%s"', $name, $value);
$options[] = sprintf('%s=%s', $name, $value);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/ConfigHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function arePhantomjsOptionsHandled()
$process = $this->configHelper->buildProcess($url, 'e4e5k2');

$this->assertContains(
ProcessUtils::escapeArgument(sprintf('%s="%s"', '--ignore-ssl-errors', 'true')),
ProcessUtils::escapeArgument(sprintf('%s=%s', '--ignore-ssl-errors', 'true')),
$process->getCommandLine()
);

Expand Down

0 comments on commit a427fd5

Please sign in to comment.