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

Upgrade: PHPUnit 10 #271

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

Conversation

kohlerdominik
Copy link
Contributor

@kohlerdominik kohlerdominik commented Dec 6, 2024

Upgrade to PHPUnit10

Notes:

  • Updating BypassFinals was quite a hassle. In the end I got it working by using nunomaduro/mock-final-classes instead of the method providing by dg/bypass-finals using the PHPUnit extension. It seems like, that with the extensions some files are not catched by the stream-wrapper and therefore get not stripped of the final keyword... Might be worth to try to use the extension in PHPUnit11 again.
  • The new class QrBillTestDataRepository is an extraction of the former TestQrBillCreatorTrait. Method-names feel dirty, but because there is some magic involved in building a QR-Bill by passing string matching methods, refactoring the whole thing feels out of scope for this upgrade. I suggest to implement a QrBillBuilder instead (with the same functionality but clearer syntax), but I can't invest time into that for now.

Todos:

@kohlerdominik kohlerdominik force-pushed the upgrade/phpunit10 branch 2 times, most recently from b1ef1a1 to b609bdc Compare December 7, 2024 12:02
@kohlerdominik kohlerdominik marked this pull request as ready for review December 7, 2024 12:44
@kohlerdominik
Copy link
Contributor Author

@sprain have you seen that I finished this draft? :)

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