diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-09-18 19:19:20 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-09-18 19:19:20 +0200 |
commit | 2924990419da66a0f230ce7dbaf583f4fc8faf01 (patch) | |
tree | af041de2c121362afe8d8971cb75e0303c6214be /_test | |
parent | 2ab82b8ef8aba27fb6fd9fed95a7d4c66b3bab99 (diff) | |
download | dokuwiki-2924990419da66a0f230ce7dbaf583f4fc8faf01.tar.gz dokuwiki-2924990419da66a0f230ce7dbaf583f4fc8faf01.zip |
remove obsolete fetchphpunit script
It's now installed via composer
Diffstat (limited to '_test')
-rwxr-xr-x | _test/fetchphpunit.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/_test/fetchphpunit.php b/_test/fetchphpunit.php deleted file mode 100755 index de4cf5f79..000000000 --- a/_test/fetchphpunit.php +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env php -<?php -/** - * Simple command line script to fetch the correct PHPUnit release - */ - -$phpVersion = PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION; -print "Running PHP $phpVersion\n"; - - -if(version_compare($phpVersion, '7.4') < 0) { - echo 'we no longer support PHP versions < 7.4 and thus do not support tests on them'; - exit(1); -} - -// for now we default to phpunit-8 -$phpunit = 'phpunit-8.phar'; - - -$url = "https://phar.phpunit.de/$phpunit"; -$out = __DIR__ . '/phpunit.phar'; - -$return = 0; -try { - file_put_contents($out, file_get_contents($url)); -} catch (Throwable $e) { - fwrite(STDERR, $e->getMessage()); - exit(1); -} - -chmod($out, 0755); -print "Downloaded $phpunit\n"; -exit(0); |