Created
August 13, 2021 14:23
-
-
Save jrfnl/c5a8ec3c6ba269efb4884a13830e5226 to your computer and use it in GitHub Desktop.
PHPUnit PHP/PHPUnit switching script example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: | |
:: PHP ??? have Xdebug + Blackfire. | |
:: PHP 7.4.14 has Xdebug with coverage | |
:: PHP 7.4.15 has Xdebug with develop + trace | |
:: | |
:set PHPBIN=C:\wamp\bin\phpcli_x86\php5.2.17\php.exe | |
:set PHPBIN=C:\wamp\bin\phpcli_x86\php5.3.29\php.exe | |
:set PHPBIN=C:\wamp\bin\phpcli_x86\php5.4.45\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php5.5.38\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php5.6.40\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.0.33\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.1.33\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.2.34\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.3.29\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.4.5\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.4.13\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.4.14\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.4.15\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php7.4.22\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php8.0.9\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php8.1.0alpha3\php.exe | |
:set PHPBIN=C:\wamp\bin\php\php8.1.0beta1\php.exe | |
set PHPBIN=C:\wamp\bin\php\php8.1.0beta2\php.exe | |
::ECHO( | |
"%PHPBIN%" -v | |
:ECHO( | |
::ECHO( | |
:: PHP <= 5.2 | |
:: See: https://github.com/treffynnon/php5.2-phpunit3.6.12-phar | |
:"%PHPBIN%" "%~dp0/phars/phpunit-3.6.17-unoff.phar" %* | |
:: This version does not seem to work... | |
:"%PHPBIN%" "%~dp0/phars/phpunit-3.7.38.phar" %* | |
:: PHP 5.3 - 5.5 | |
:"%PHPBIN%" "%~dp0/phars/phpunit-4.5.1.phar" %* | |
:"%PHPBIN%" "%~dp0/phars/phpunit-4.8.36.phar" %* | |
:: PHP 5.6 - 7.1 | |
:"%PHPBIN%" "%~dp0/phars/phpunit-5.7.27.phar" %* | |
:: PHP 7.0 - 7.2 | |
:"%PHPBIN%" "%~dp0/phars/phpunit-6.5.14.phar" %* | |
:: PHP 7.1 - 7.3 | |
:"%PHPBIN%" "%~dp0/phars/phpunit-7.5.20.phar" %* | |
:: PHP 7.2 - 7.4 | |
:"%PHPBIN%" "%~dp0/phars/phpunit-8.5.16.phar" %* | |
:"%PHPBIN%" "%~dp0/phars/phpunit-8.5.19.phar" %* | |
:: PHP 7.3 - 7.4, PHP 8 | |
:"%PHPBIN%" "%~dp0/phars/phpunit-9.2.6.phar" %* | |
:: Don't use for code coverage with PHPCS standards! PHP-parser interference problem. | |
:"%PHPBIN%" "%~dp0/phars/phpunit-9.3.11.phar" %* | |
:"%PHPBIN%" "%~dp0/phars/phpunit-9.4.4.phar" %* | |
:"%PHPBIN%" "%~dp0/phars/phpunit-9.5.5.phar" %* | |
:"%PHPBIN%" "%~dp0/phars/phpunit-9.5.7.phar" %* | |
"%PHPBIN%" "%~dp0/phars/phpunit-9.5.8.phar" %* | |
:: Blackfire run | |
:"%~dp0/blackfire/blackfire.exe" run "%PHPBIN%" "%~dp0/phars/phpunit-7.5.20.phar" -- %* | |
:ECHO( | |
:ECHO Exit code is %errorlevel% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment