Skip to content

Take #[IgnorePhpunitDeprecations] attribute into account for test runner deprecations #6331

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

Closed
wants to merge 6 commits into from

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Aug 23, 2025

similar to b3be029 but with a fix to prevent the endless loop we saw in #6304 (comment)

closes #6329

@staabm
Copy link
Contributor Author

staabm commented Aug 23, 2025

@sebastianbergmann your initial commit was not accompanied by a test-case. do you know what was the motivation for the initial commit so we can properly test it?

@@ -0,0 +1,29 @@
--TEST--
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added this test from #6304 (comment) which seems to not find its way into the codebase?

@staabm staabm marked this pull request as ready for review August 23, 2025 10:02
@sebastianbergmann sebastianbergmann added type/enhancement A new idea that should be implemented feature/test-runner CLI test runner version/11 Something affects PHPUnit 11 version/12 Something affects PHPUnit 12 labels Aug 23, 2025
@staabm
Copy link
Contributor Author

staabm commented Aug 23, 2025

@jcandan @mably @fjgarlin @cmlara @jrfnl this PR re-adds a reworked commit which caused problems for you in #6304

could you please double check the new version of the initial fix will not lead to the same problems in your projects?

I tried to cover it with tests as good as possible, based on the information given at issue 6304.

@jrfnl
Copy link
Contributor

jrfnl commented Aug 23, 2025

@staabm Thanks for the ping.

Without an opinion on the functionality in the PR.... tested locally on Windows 10 and I don't see the "hanging" anymore. Tried to test in CI on Linux too, but am running into rate limits. Will report back once I get CI running again.

@sebastianbergmann
Copy link
Owner

This looks good to me, thank you for working on this. However, for the 12.3 and main branches we will need different tests. I hope to be able to look into this soon.

@sebastianbergmann
Copy link
Owner

Merged manually, thanks.

@staabm staabm deleted the attr branch August 25, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-runner CLI test runner type/enhancement A new idea that should be implemented version/11 Something affects PHPUnit 11 version/12 Something affects PHPUnit 12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants