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 9 → 10 #1144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thomascorthals
Copy link
Member

@thomascorthals thomascorthals commented Jan 20, 2025

Major changes affecting us:

  • setUpBeforeClass()/tearDownAfterClass() can no longer perform assertions. Tests of correct configuration have been moved to separate test functions.
  • Changes in mocks necessitate a different approach, a.o. when testing traits.
  • Data providers always have to be declared static.

@thomascorthals thomascorthals marked this pull request as draft January 20, 2025 12:06
@thomascorthals
Copy link
Member Author

Looks like I broke the codecov integration. Converting to draft for now.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.13%. Comparing base (9cdf3dd) to head (fb11b39).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1144      +/-   ##
==========================================
+ Coverage   97.75%   98.13%   +0.38%     
==========================================
  Files         400      403       +3     
  Lines       10524    10578      +54     
==========================================
+ Hits        10288    10381      +93     
+ Misses        236      197      -39     
Flag Coverage Δ
unittests 98.13% <ø> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thomascorthals thomascorthals marked this pull request as ready for review January 26, 2025 20:25
@thomascorthals
Copy link
Member Author

thomascorthals commented Jan 26, 2025

Codecov worked after I let it access my branch. But it reported a drop in coverage. Not entirely sure where that came from, I filled in some unit tests for code that was only indirectly covered and it stopped complaining about that.

@thomascorthals
Copy link
Member Author

The Solr 9 tests fail since Solr 9.8 was released. They will pass when #1146 is merged.

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