Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phpunit 10 compatibility? #19

Open
rutgerrademaker opened this issue Feb 9, 2023 · 1 comment
Open

Phpunit 10 compatibility? #19

rutgerrademaker opened this issue Feb 9, 2023 · 1 comment

Comments

@rutgerrademaker
Copy link
Contributor

rutgerrademaker commented Feb 9, 2023

Since phpunit 10 got released last week we have received some reports on tests not being executed or failing
As the testing-suite only requires an @stable version, it is up to the package/project to dictate which version of phpunit it really needs.
For that reason I think we do NOT have to update our dependencies.

I post this message mainly to give some clarity/guidance to end-users of the testing-suite

E.g, if you require testing-suite, without restricting phpunit/phpunit to a given version (e.g ^9) it will install version 10 (if you're on php 8.1).

Phpunit states, there is no real reason to update to 10 directly
So, for that reason you might need/want to restrict phpunit/phpunit to e.g ^9 in your project until you are ready to update to version 10

See also https://phpunit.de/announcements/phpunit-10.html

OMGWTFBBQ? I must upgrade to PHPUnit 10 immediately!

No, you do not.

Just because PHPUnit 10 has been released today does not mean that PHPUnit 8 or PHPUnit 9 will no longer work. While old versions of PHPUnit will eventually stop receiving bug fixes, [we will keep them compatible with new versions of PHP for as long as possible](https://phpunit.de/supported-versions.html).

We sincerely hope that you do not use the [Death Star Version Constraint](https://thephp.cc/articles/the-death-star-version-constraint) and therefore do not automatically and unintentionally upgrade to a new major version of PHPUnit.
@Anve94
Copy link
Member

Anve94 commented Dec 18, 2023

I think the actions are also affected by this.
Would be good if this is being picked up we also look into refactoring the tests in general and include it with the scope to get github actions in a stable place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants