@@ -91,14 +91,14 @@ public function testPrefixIsPrependedToAllGeneratedProcess()
91
91
92
92
$ proc = $ pb ->setArguments (array ('-v ' ))->getProcess ();
93
93
if ('\\' === DIRECTORY_SEPARATOR ) {
94
- $ this ->assertEquals ('/usr/bin/php -v ' , $ proc ->getCommandLine ());
94
+ $ this ->assertEquals ('" /usr/bin/php" -v ' , $ proc ->getCommandLine ());
95
95
} else {
96
96
$ this ->assertEquals ("'/usr/bin/php' '-v' " , $ proc ->getCommandLine ());
97
97
}
98
98
99
99
$ proc = $ pb ->setArguments (array ('-i ' ))->getProcess ();
100
100
if ('\\' === DIRECTORY_SEPARATOR ) {
101
- $ this ->assertEquals ('/usr/bin/php -i ' , $ proc ->getCommandLine ());
101
+ $ this ->assertEquals ('" /usr/bin/php" -i ' , $ proc ->getCommandLine ());
102
102
} else {
103
103
$ this ->assertEquals ("'/usr/bin/php' '-i' " , $ proc ->getCommandLine ());
104
104
}
@@ -111,14 +111,14 @@ public function testArrayPrefixesArePrependedToAllGeneratedProcess()
111
111
112
112
$ proc = $ pb ->setArguments (array ('-v ' ))->getProcess ();
113
113
if ('\\' === DIRECTORY_SEPARATOR ) {
114
- $ this ->assertEquals ('/usr/bin/php composer.phar -v ' , $ proc ->getCommandLine ());
114
+ $ this ->assertEquals ('" /usr/bin/php" composer.phar -v ' , $ proc ->getCommandLine ());
115
115
} else {
116
116
$ this ->assertEquals ("'/usr/bin/php' 'composer.phar' '-v' " , $ proc ->getCommandLine ());
117
117
}
118
118
119
119
$ proc = $ pb ->setArguments (array ('-i ' ))->getProcess ();
120
120
if ('\\' === DIRECTORY_SEPARATOR ) {
121
- $ this ->assertEquals ('/usr/bin/php composer.phar -i ' , $ proc ->getCommandLine ());
121
+ $ this ->assertEquals ('" /usr/bin/php" composer.phar -i ' , $ proc ->getCommandLine ());
122
122
} else {
123
123
$ this ->assertEquals ("'/usr/bin/php' 'composer.phar' '-i' " , $ proc ->getCommandLine ());
124
124
}
@@ -164,7 +164,7 @@ public function testShouldNotThrowALogicExceptionIfNoArgument()
164
164
->getProcess ();
165
165
166
166
if ('\\' === DIRECTORY_SEPARATOR ) {
167
- $ this ->assertEquals ('/usr/bin/php ' , $ process ->getCommandLine ());
167
+ $ this ->assertEquals ('" /usr/bin/php" ' , $ process ->getCommandLine ());
168
168
} else {
169
169
$ this ->assertEquals ("'/usr/bin/php' " , $ process ->getCommandLine ());
170
170
}
@@ -176,7 +176,7 @@ public function testShouldNotThrowALogicExceptionIfNoPrefix()
176
176
->getProcess ();
177
177
178
178
if ('\\' === DIRECTORY_SEPARATOR ) {
179
- $ this ->assertEquals ('/usr/bin/php ' , $ process ->getCommandLine ());
179
+ $ this ->assertEquals ('" /usr/bin/php" ' , $ process ->getCommandLine ());
180
180
} else {
181
181
$ this ->assertEquals ("'/usr/bin/php' " , $ process ->getCommandLine ());
182
182
}
0 commit comments