Skip to content

Commit

Permalink
Fix failing tests on windows.
Browse files Browse the repository at this point in the history
Windows uses " not ' to escape shell arguments.
  • Loading branch information
markstory committed Aug 21, 2014
1 parent 5bce314 commit e9dd234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/Console/Command/Task/PluginTaskTest.php
Expand Up @@ -201,7 +201,7 @@ public function testExecuteUpdateComposer() {

$this->Task->expects($this->at(3))
->method('callProcess')
->with("cd '$path'; php 'composer.phar' dump-autoload");
->with('cd ' . escapeshellarg($path) . '; php ' . escapeshellarg('composer.phar') . ' dump-autoload');

$this->Task->main('BakeTestPlugin');

Expand Down

0 comments on commit e9dd234

Please sign in to comment.