Skip to content

Conversation

@xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 26, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

In the past, we needed the legacy group with PHPUnit < 10 to indicate that a test was expected to trigger deprecations. With our update to PHPUnit 12 this is no longer necessary. We now use the group only to skip these tests when running high deps tests with different major versions. The tests from which the legacy group is dropped do not handle deprecated Symfony features but deal with features that users can use to trigger deprecations leveraging our components. They don't have to be skipped in cross-version test runs.

@carsonbot carsonbot added this to the 7.4 milestone Oct 26, 2025
@carsonbot carsonbot changed the title clean up legacy groups in tests clean up legacy groups in tests Oct 26, 2025
In the past, we needed the legacy group with PHPUnit < 10 to indicate that a
test was expected to trigger deprecations. With our update to PHPUnit 12 this
is no longer necessary. We now use the group only to skip these tests when
running high deps tests with different major versions. The tests from which
the legacy group is dropped do not handle deprecated Symfony features but
deal with features that users can use to trigger deprecations leveraging our
components. They don't have to be skipped in cross-version test runs.
@xabbuh xabbuh force-pushed the legacy-group-cleanup branch from b08fb66 to 7f0acb4 Compare October 26, 2025 15:53
@GromNaN GromNaN changed the title clean up legacy groups in tests Clean up legacy groups in tests Oct 27, 2025
@fabpot
Copy link
Member

fabpot commented Oct 27, 2025

Thank you @xabbuh.

@fabpot fabpot merged commit e034b15 into symfony:7.4 Oct 27, 2025
13 of 14 checks passed
@xabbuh xabbuh deleted the legacy-group-cleanup branch October 27, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants