Skip to content

[PHPUnit60] Change AddDoesNotPerformAssertionToNonAssertingTestRector node from ClassMethod to Class_ - #830

Open
TomasVotruba wants to merge 2 commits into
mainfrom
does-not-perform-assertion-on-class
Open

TomasVotruba wants to merge 2 commits into
mainfrom
does-not-perform-assertion-on-class

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Rule now visits Class_ and walks its methods, keeping the same name.

  • class-level checks (test class, Twig integration test case) run once per class, via Scope class reflection
  • Scope is fetched in refactor() so class-level checks (e.g. abstract) can be added without resolving reflection per method
  • trait skip is now implicit, traits are not Class_ nodes
  • attribute order in PHPUnit10DataProvider fixture changed, as this rule now runs before the method-level DataProviderAnnotationToAttributeRector

@TomasVotruba
TomasVotruba force-pushed the does-not-perform-assertion-on-class branch from ede393c to c11dd51 Compare November 14, 2026 17:23
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.

1 participant