You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPUnit 9 supports PHP 7.3+, which seems to be the targeted lowest supported PHP version now (?). And if I read it correctly, Codeception/Codeception#6000 is merged into Codeception 4.1.9 so we can expect it to be safe for PHP 8.
To Reproduce
Run the acceptance test suite in PHP 8.0.x environment.
See the error(s).
Expected behavior
All tests should be able to run in PHP 8 environment.
Changing the codeception and phpunit version seems to require changes to a lot of libraries in vendor folder. It would be better if #1123 is merged before touching this subject.
Great work! Yes, with our minimum version moving up to PHP 7.3, it'll be great to update our test suite to make use of newer PHPUnit and Codeception versions. I've merged your PRs and everything is looking good, all tests are green 👍 A massive thank you for doing the leg-work on these upgrades.
Describe the bug
Ran into this error in PHP 8 testing:
The error is very similar to doctrine/dbal#4197, which is caused by sebastianbergmann/phpunit#4373. In short, an internal programming interface is using the keyword "match". Since PHP 8 introduced the match expression, it has became a reserved word. The solution for PHPUnit is to replace "match" with something else. And the fix (sebastianbergmann/phpunit#4374) was published in PHPUnit 9.3.
As shown in PHPUnit's compatibility table:
PHPUnit 9 supports PHP 7.3+, which seems to be the targeted lowest supported PHP version now (?). And if I read it correctly, Codeception/Codeception#6000 is merged into Codeception 4.1.9 so we can expect it to be safe for PHP 8.
To Reproduce
Expected behavior
All tests should be able to run in PHP 8 environment.
Screenshots
Your System
Additional context
Blocks #1210.
The text was updated successfully, but these errors were encountered: