dev/core#980 [phpunit test] update phpunit extends class to support later versions #14333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Updates phpunit version support in the test suite
Before
Supported versions of phpunit (7 & 8) do not work with CiviCRM test suite.
After
Supported versions of phpunit (7 & 8) do work with CiviCRM test suite. Versions prior to 4.8 do not
Technical Details
Per https://engineering.facile.it/blog/eng/phpunit-upgrade-namespace/ this works with phpunit 4.8 +
Phpunit support for php versions is here https://phpunit.de/supported-versions.html
Basically we need phpunit 7 to support php 7.3 - which we should be adding to our
test suite now. It's hard to make a case that we still need to support phpunit 4.8 - let
alone versions before that - 5.7 still covers php 5.6 which we need for some of our current branches.
Unit testing on master would ideally switch up to a supported version of phpunit - 7 or 8
Comments
@totten @seamuslee001