Skip to content

[Tests] Trim redundant Issues regression tests - #8399

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-trim-issue-tests
Aug 29, 2026
Merged

[Tests] Trim redundant Issues regression tests#8399
TomasVotruba merged 2 commits into
mainfrom
tv-trim-issue-tests

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Removes 3 tests/Issues/* regression tests that no longer earn their keep:

  • Issue6420 - guarded RemoveDeadStmtRector not eating a preg_replace call that RenameFunctionRector rewrites to \Safe\preg_replace. Narrow 2021 edge, both rules now have solid own coverage.
  • ConstructorPromoAnnotationToAttribute - docblock relocation into a promoted constructor param; covered by ClassPropertyAssignToConstructorPromotionRector own tests.
  • AddClassDependency - symfony-only rule (GetBySymfonyStringToConstructorInjectionRector). The PreferRequiredSetter case already exists in rector-symfony; the remaining "append to existing constructor" case is moved there in [DependencyInjection] Cover adding dependency into existing constructor rector-symfony#1061.

Pure test removals - no engine or rule change.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) August 29, 2026 08:40
@TomasVotruba
TomasVotruba merged commit c1c61c4 into main Aug 29, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the tv-trim-issue-tests branch August 29, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants