@@ -93,14 +93,14 @@ public function testPrefixIsPrependedToAllGeneratedProcess()
93
93
if ('\\' === DIRECTORY_SEPARATOR ) {
94
94
$ this ->assertEquals ('/usr/bin/php -v ' , $ proc ->getCommandLine ());
95
95
} else {
96
- $ this ->assertEquals ("exec '/usr/bin/php' '-v' " , $ proc ->getCommandLine ());
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
101
$ this ->assertEquals ('/usr/bin/php -i ' , $ proc ->getCommandLine ());
102
102
} else {
103
- $ this ->assertEquals ("exec '/usr/bin/php' '-i' " , $ proc ->getCommandLine ());
103
+ $ this ->assertEquals ("'/usr/bin/php' '-i' " , $ proc ->getCommandLine ());
104
104
}
105
105
}
106
106
@@ -113,14 +113,14 @@ public function testArrayPrefixesArePrependedToAllGeneratedProcess()
113
113
if ('\\' === DIRECTORY_SEPARATOR ) {
114
114
$ this ->assertEquals ('/usr/bin/php composer.phar -v ' , $ proc ->getCommandLine ());
115
115
} else {
116
- $ this ->assertEquals ("exec '/usr/bin/php' 'composer.phar' '-v' " , $ proc ->getCommandLine ());
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
121
$ this ->assertEquals ('/usr/bin/php composer.phar -i ' , $ proc ->getCommandLine ());
122
122
} else {
123
- $ this ->assertEquals ("exec '/usr/bin/php' 'composer.phar' '-i' " , $ proc ->getCommandLine ());
123
+ $ this ->assertEquals ("'/usr/bin/php' 'composer.phar' '-i' " , $ proc ->getCommandLine ());
124
124
}
125
125
}
126
126
@@ -132,7 +132,7 @@ public function testShouldEscapeArguments()
132
132
if ('\\' === DIRECTORY_SEPARATOR ) {
133
133
$ this ->assertSame ('""^%"path"^%"" "foo "" bar" ""^%"baz"^%"baz" ' , $ proc ->getCommandLine ());
134
134
} else {
135
- $ this ->assertSame ("exec '%path%' 'foo \" bar' '%baz%baz' " , $ proc ->getCommandLine ());
135
+ $ this ->assertSame ("'%path%' 'foo \" bar' '%baz%baz' " , $ proc ->getCommandLine ());
136
136
}
137
137
}
138
138
@@ -145,7 +145,7 @@ public function testShouldEscapeArgumentsAndPrefix()
145
145
if ('\\' === DIRECTORY_SEPARATOR ) {
146
146
$ this ->assertSame ('""^%"prefix"^%"" arg ' , $ proc ->getCommandLine ());
147
147
} else {
148
- $ this ->assertSame ("exec '%prefix%' 'arg' " , $ proc ->getCommandLine ());
148
+ $ this ->assertSame ("'%prefix%' 'arg' " , $ proc ->getCommandLine ());
149
149
}
150
150
}
151
151
@@ -166,7 +166,7 @@ public function testShouldNotThrowALogicExceptionIfNoArgument()
166
166
if ('\\' === DIRECTORY_SEPARATOR ) {
167
167
$ this ->assertEquals ('/usr/bin/php ' , $ process ->getCommandLine ());
168
168
} else {
169
- $ this ->assertEquals ("exec '/usr/bin/php' " , $ process ->getCommandLine ());
169
+ $ this ->assertEquals ("'/usr/bin/php' " , $ process ->getCommandLine ());
170
170
}
171
171
}
172
172
@@ -178,7 +178,7 @@ public function testShouldNotThrowALogicExceptionIfNoPrefix()
178
178
if ('\\' === DIRECTORY_SEPARATOR ) {
179
179
$ this ->assertEquals ('/usr/bin/php ' , $ process ->getCommandLine ());
180
180
} else {
181
- $ this ->assertEquals ("exec '/usr/bin/php' " , $ process ->getCommandLine ());
181
+ $ this ->assertEquals ("'/usr/bin/php' " , $ process ->getCommandLine ());
182
182
}
183
183
}
184
184
0 commit comments