Choosing a PHPUnit version
Posted: July 31st, 2018, 2:26 pm
The bundled PHPUnit version is REALLY really old
As in no longer supported old
We currently have to do some rather terrible workarounds every time the devsense php visual studio extension updates to get our unit tests working inside visual studio again
1. Try to run the unit tests
2. Get a failure
3. Copy the file path of the extension location
4. Open that location and copy a corrected version of PhpTestingPrinter.php for newer versions of phpunit (basically changes for namespaces)
5. Download an up to date phar of phpunit, rename it to phpunit-5.7.9.phar and copy it over the existing phar
Run tests successfully!
But it would be FAR easier to just allow the user to point to their own phpunit phar if they want, like you can choose your own php install
Also you REALLY should update your phpunit that is the default bundle to at least a supported version!
Support ended for version 5 of phpUnit in February - https://phpunit.de/
Support will ends for version 6 of phpUnit February 1, 2019
We're using phpunit version 7 and will be upgrading to version 8 when it's ready so 5 is simply not even usable for us.
As in no longer supported old
We currently have to do some rather terrible workarounds every time the devsense php visual studio extension updates to get our unit tests working inside visual studio again
1. Try to run the unit tests
2. Get a failure
3. Copy the file path of the extension location
4. Open that location and copy a corrected version of PhpTestingPrinter.php for newer versions of phpunit (basically changes for namespaces)
5. Download an up to date phar of phpunit, rename it to phpunit-5.7.9.phar and copy it over the existing phar
Run tests successfully!
But it would be FAR easier to just allow the user to point to their own phpunit phar if they want, like you can choose your own php install
Also you REALLY should update your phpunit that is the default bundle to at least a supported version!
Support ended for version 5 of phpUnit in February - https://phpunit.de/
Support will ends for version 6 of phpUnit February 1, 2019
We're using phpunit version 7 and will be upgrading to version 8 when it's ready so 5 is simply not even usable for us.