Skip to content

[custom-rule] Fix loading of template test by PHPUnit by adding phtml suffix #7473

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-template-suffix
Oct 11, 2025
Merged

[custom-rule] Fix loading of template test by PHPUnit by adding phtml suffix #7473
TomasVotruba merged 2 commits into
mainfrom
tv-template-suffix

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Oct 11, 2025

Copy link
Copy Markdown
Member

Running vendor/bin/phpunit on downgraded Rector repository can pick up /templates directory, where a class that extends TestCase is considered a test.

These files are only templates, to generate custom rule code + test.
By adding a suffix, this file is ignored by PHPUnit as intended.

Screenshot From 2025-10-11 10-45-56

@TomasVotruba
TomasVotruba force-pushed the tv-template-suffix branch 2 times, most recently from 6305981 to 40b26ef Compare October 11, 2025 11:47
@TomasVotruba TomasVotruba changed the title tv template suffix [custom-rule] Fix loading of template test by PHPUnit by adding phtml suffix Oct 11, 2025
@TomasVotruba
TomasVotruba merged commit 0715911 into main Oct 11, 2025
53 checks passed
@TomasVotruba
TomasVotruba deleted the tv-template-suffix branch October 11, 2025 11:52
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant