Skip to content

Commit 8a21eb6

Browse files
nsbxfabpot
nsbx
authored andcommitted
[PhpUnitBridge] Fix error on some Windows OS
1 parent 3bcc1dc commit 8a21eb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/simple-phpunit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
7070
throw new \RuntimeException("Could not find $remoteZip");
7171
}
7272
stream_copy_to_stream($remoteZipStream, fopen("$PHPUNIT_VERSION.zip", 'wb'));
73+
} elseif ('\\' === DIRECTORY_SEPARATOR) {
74+
passthru("certutil -urlcache -split -f \"https://github.com/sebastianbergmann/phpunit/archive/$PHPUNIT_VERSION.zip\" $PHPUNIT_VERSION.zip");
7375
} else {
7476
@unlink("$PHPUNIT_VERSION.zip");
7577
passthru("wget -q https://github.com/sebastianbergmann/phpunit/archive/$PHPUNIT_VERSION.zip");

0 commit comments

Comments
 (0)