Skip to content

ValidationHelper::is_validated(): add basic tests#2731

Open
rodrigoprimo wants to merge 1 commit into
developfrom
validation-helper-tests
Open

ValidationHelper::is_validated(): add basic tests#2731
rodrigoprimo wants to merge 1 commit into
developfrom
validation-helper-tests

Conversation

@rodrigoprimo

@rodrigoprimo rodrigoprimo commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Description

In preparation for supporting PHPCS 4.0, this PR adds unit tests for the ValidationHelper::is_validated() method.

Some test scenarios cannot coexist in a single .inc file without interfering with each other. For those, I use separate .inc files parsed via a private assertIsValidatedInFile() helper that temporarily swaps self::$phpcsFile. I'd appreciate feedback on whether this approach is acceptable or if there's a preferred pattern for this.

Suggested changelog entry

N/A

Related issues/external references

Related to: #2272

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.

1 participant