Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Oct 11, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants