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

[4.x] PHPUnit 10 #9529

Merged
merged 34 commits into from
Feb 15, 2024
Merged

[4.x] PHPUnit 10 #9529

merged 34 commits into from
Feb 15, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Feb 14, 2024

This PR updates the test suite to use PHPUnit 10. (PHPUnit 9 is still used for older versions)

It's required for the upgrade to Laravel 11. Having this in a separate PR will make #9434 easier to review as it will just be Laravel 11 related changes, and not a ton of test files.

  • Adds new cache directory to gitignore
  • Requires phpunit 10
  • Migrates phpunit.xml config
  • Adds static to data providers
  • Adds Provider suffix to data provider methods for consistency
  • Rename some classes containing the word Test which PHPUnit 10 doesn't like.
  • Rename a result method which now exists in PHPUnit 10.
  • Remove the Windows based overrides to assertEquals. You can't override it anymore because it's now final. We use the assertStringEqualsStringIgnoringLineEndings to get the same behavior. Copied the PHPUnit 10 thing locally to get the same effect on PHPUnit 9.

@jasonvarga jasonvarga merged commit d76a4b4 into 4.x Feb 15, 2024
37 checks passed
@jasonvarga jasonvarga deleted the phpunit-10 branch February 15, 2024 14:34
@jasonvarga jasonvarga mentioned this pull request Mar 12, 2024
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.

1 participant