Skip to content

AbstractSniffTestCase: flag missing .fixed files #999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 15, 2025

Description

As per issue #300, the PHPCS native AbstractSniffUnitTest test case should flag sniff test case files which would lead to fixes, but for which no .fixed file is available to verify the fixes against.

It should also fail a test run when this occurs.

This commit makes it so.

Suggested changelog entry

Changed:
All test case files (inc) which would be changed by the sniff under test if running the fixer, are now required to be accompanied by a *.fixed file.

Related issues/external references

Fixes #300

As per issue 300, the PHPCS native `AbstractSniffUnitTest` test case should flag sniff test case files which would lead to fixes, but for which no `.fixed` file is available to verify the fixes against.

It should also fail a test run when this occurs.

This commit makes it so.

Fixes 300
@jrfnl jrfnl merged commit dec7de3 into 4.x Apr 15, 2025
54 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/300-abstractsniffunittest-flag-missing-fixes-files branch April 15, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants