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

Feature/update phpunit 8 to 9 #536

Merged
merged 13 commits into from Feb 27, 2022

Conversation

Chris53897
Copy link
Contributor

@Chris53897 Chris53897 commented Feb 25, 2022

All Changes are related to php 7.4 and phpunit 9 and to get tests running.
This PR is related to #535

Serveral changes are needed in composer.json
"league/uri-schemes": "^1.1", => Otherwise it would not install on php 8.x
"payum/payum": "^1.6.2", => Otherwise --prefer-lowest Test will not be an installable set
"symfony/phpunit-bridge": "6.0", => Only one version is needed for require-dev
"psr/log": "^1 || ^2", is more a temporary fix. I guesss the real problem is in payum itself. Payum/Payum#926
"symfony/form": "^4.4.20 || ^5.0", => Required for the test (Annotated Validations) CreditCardTypeTest->shouldRequireExpireAtInFuture()

Update: All Tests are migrated to phpUnit 9.

Symfony4 needs some extra config to work with Symfony4, 5 and 6 in the near future.
Symfony6 will need extra Work, as there are deprecated functions.
Should be handled in an different PR, after support of Symfony6 is added.

Copy link
Member

@pierredup pierredup left a comment

Choose a reason for hiding this comment

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

Thanks for the massive effort here, just left a few small comments

.github/workflows/tests.yaml Outdated Show resolved Hide resolved
Tests/Controller/AbstractControllerTest.php Outdated Show resolved Hide resolved
Tests/DependencyInjection/PayumExtensionTest.php Outdated Show resolved Hide resolved
Tests/DependencyInjection/PayumExtensionTest.php Outdated Show resolved Hide resolved
Tests/Functional/PayumBuilderTest.php Outdated Show resolved Hide resolved
Tests/Functional/app/config/config.yml Outdated Show resolved Hide resolved
@Chris53897
Copy link
Contributor Author

Chris53897 commented Feb 27, 2022

I have to thank you for maintaining payum.
Thanks for the fast response.
I made the suggested changes. Can you please review again.

Copy link
Member

@pierredup pierredup left a comment

Choose a reason for hiding this comment

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

Thanks for the massive effort here @Chris53897

@pierredup pierredup merged commit 588c93e into Payum:master Feb 27, 2022
@Chris53897 Chris53897 deleted the feature/update-phpunit-8-to-9 branch March 7, 2022 08:29
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.

None yet

3 participants