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

Bump PHPUnit version to 10 #340

Merged
merged 2 commits into from
Aug 3, 2024
Merged

Bump PHPUnit version to 10 #340

merged 2 commits into from
Aug 3, 2024

Conversation

W0rma
Copy link
Contributor

@W0rma W0rma commented Aug 2, 2024

#339 dropped support PHP 8.0 and made it possible to bump the PHPUnit version.

README.md Outdated
@@ -9,7 +9,7 @@ fancy paginator component

## Running unit tests

PHPUnit 9 or newer is required.
PHPUnit 10 or newer is required.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed (it was wrong in the previous version too). We can't guarantee that tests will work with PHPUnit 11, so we need to remove the "or newer" clause.
If, instead, you manage to get the tests working with both, let's change the requirements to include version 11 too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests work with PHPUnit 10 and 11.
I have updated the README accordingly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests work with PHPUnit 10 and 11. I have updated the README accordingly.

Forgive my scepticism, but I need to see the tests (and I can't, as long as we don't allow PHPUnit 11)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I forgot to mentioned that I have also allowed the installation of PHPUnit 11.

In PHP 8.1, tests are using PHPUnit 10, in higher PHP versions, PHPUnit 11 is used (see https://github.com/KnpLabs/knp-components/actions/runs/10227239091/job/28298482755?pr=340).

composer.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@garak garak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update php-cs-fixer rules accordingly

@W0rma
Copy link
Contributor Author

W0rma commented Aug 3, 2024

Please update php-cs-fixer rules accordingly

I have updated the rule sets regarding PHP and PHPUnit

@garak garak merged commit 7b63a73 into KnpLabs:master Aug 3, 2024
7 checks passed
@W0rma W0rma deleted the phpunit10 branch August 5, 2024 03:34
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

Successfully merging this pull request may close these issues.

2 participants