Skip to content

Commit fa638c0

Browse files
Merge branch '4.2' into 4.3
* 4.2: [PhpUnitBridge] fix running simple-phpunit on Windows fixed phpdocs
2 parents c460a6b + 80f9ffa commit fa638c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/simple-phpunit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@
127127
}
128128
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
129129
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION.99");
130+
$q = '\\' === DIRECTORY_SEPARATOR ? '"' : '';
130131
// --no-suggest is not in the list to keep compat with composer 1.0, which is shipped with Ubuntu 16.04LTS
131-
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p, getcwd()));
132+
$exit = proc_close(proc_open("$q$COMPOSER install --no-dev --prefer-dist --no-progress --ansi$q", array(), $p, getcwd()));
132133
putenv('COMPOSER_ROOT_VERSION'.(false !== $prevRoot ? '='.$prevRoot : ''));
133134
if ($exit) {
134135
exit($exit);

0 commit comments

Comments
 (0)