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

tests: make dataprovider static & some #17

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

mfn
Copy link
Collaborator

@mfn mfn commented Feb 18, 2024

Summary

In #16 I wrote

phpunit 10 throws a warning for non-static dataproviders
Fixing them wasn't as straightforward, as they're calling non-static methods also into the framework; therefore I left this for now as it's only warning (needs to be fixed for phpunit 11)

Turns out I was partially wrong, the providers are fairly basic and just be switched to static.

Additional changes:

  • migrate phpunit config for latest version
    Note: older version will see unsupported XML attributes and report it, it does not impact the functionality of the tests
    image

    It also does not impact code coverage per se, as it will use latest phpunit only

  • chore: use latest PHP version in GHA where possible

@mfn mfn self-assigned this Feb 18, 2024
phpunit.xml Show resolved Hide resolved
@mfn mfn changed the title tests: make dataprovider static tests: make dataprovider static & some Feb 18, 2024
@mfn mfn requested a review from spawnia February 18, 2024 15:07
@spawnia spawnia merged commit f8743fa into laragraph:master Feb 23, 2024
36 checks passed
@spawnia
Copy link
Member

spawnia commented Feb 23, 2024

Thanks, good cleanup

@mfn mfn deleted the mfn-tests-static-dataloader branch February 23, 2024 15:10
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