Skip to content

[Tests] Restore static parameters after ConfigDumperTest - #9077

Merged
samsonasik merged 1 commit into
rectorphp:mainfrom
kattokeskus:config-dumper-test-parameter-leak
Nov 27, 2026
Merged

samsonasik merged 1 commit into
rectorphp:mainfrom
kattokeskus:config-dumper-test-parameter-leak

Conversation

@kk-daniel

Copy link
Copy Markdown
Contributor

ConfigDumperTest (#9071) changes the static SimpleParameterProvider options and never restores them. After testSkips, ConfigurableRectorInterface stays in the skip list, so a later test class in the same process skips every configurable rule.

With fastunit -p 4 this fails IssuePropertyPromoRemoveDelegatingParentTest on #9076. This restores the options in tearDown().

testSkips left ConfigurableRectorInterface in the static skip list, so later test classes in the same process skipped every configurable rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@samsonasik

Copy link
Copy Markdown
Member

Thank you @kk-daniel

@samsonasik
samsonasik merged commit db6436a into rectorphp:main Nov 27, 2026
51 checks passed
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