Skip to content

Commit

Permalink
[PhpUnitBridge] Fix error on some Windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbx authored and fabpot committed Jun 10, 2018
1 parent 3bcc1dc commit 8a21eb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/simple-phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
throw new \RuntimeException("Could not find $remoteZip");
}
stream_copy_to_stream($remoteZipStream, fopen("$PHPUNIT_VERSION.zip", 'wb'));
} elseif ('\\' === DIRECTORY_SEPARATOR) {
passthru("certutil -urlcache -split -f \"https://github.com/sebastianbergmann/phpunit/archive/$PHPUNIT_VERSION.zip\" $PHPUNIT_VERSION.zip");
} else {
@unlink("$PHPUNIT_VERSION.zip");
passthru("wget -q https://github.com/sebastianbergmann/phpunit/archive/$PHPUNIT_VERSION.zip");
Expand Down

0 comments on commit 8a21eb6

Please sign in to comment.