Skip to content

Handle change in PHPUnit invocation syntax #235

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

Merged
merged 2 commits into from
Mar 27, 2025

Conversation

apotek
Copy link
Contributor

@apotek apotek commented Mar 25, 2025

Description

This merge request allows for invoking robo job:run-unit-tests across PHPUnit version < 10 and > 10. PHPUnit 10 dropped support for the --verbose flag.

Motivation / Context

Resolves #233
Resolves #234

Testing Instructions / How This Has Been Tested

Require this branch of Usher in your project and run robo job:run-unit-tests. It would be especially good to test this in a project that uses PHPUnit 9 (or lower) and one that uses PHPUnit v 10 (or higher).

@apotek apotek self-assigned this Mar 25, 2025
@apotek apotek requested a review from agarzola March 25, 2025 05:56
Copy link
Member

@agarzola agarzola left a comment

Choose a reason for hiding this comment

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

Code changes look great. I assume you will test this in a couple of our projects (each with a different version of PHPUnit) before cutting a new release, and that you can do so more efficiently and competently than I possibly could!

I am leaving some questions and suggestions, but the code changes here look great.

@apotek apotek requested a review from agarzola March 25, 2025 19:16
@apotek
Copy link
Contributor Author

apotek commented Mar 25, 2025

thank you for your comments and suggestions Alfonso. I have added the todo you requested and will mention the changes in the release notes. Just passing this back to you for anything else you might want to add and for approval. Thank you.

Copy link
Member

@agarzola agarzola left a comment

Choose a reason for hiding this comment

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

Approving this as-is.

@apotek apotek merged commit 0d24d6c into 5.x Mar 27, 2025
5 checks passed
@apotek apotek deleted the 233-phpunit-10-no-verbose-option branch March 27, 2025 19:30
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.

Usher relies on phpunit to exist to run job:run-unit-tests, but does not install/require phpunit PHPUnit 10 no longer supports --verbose option
2 participants