🔥 Hot Fix: remove FileList tests #1213
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
PR #1113 introduced a set of tests for the
FileList
class to accompany a bug fix.However, it now looks like these tests break the ability to run sniff tests for external standards using the PHPCS native test framework. This is problematic and even more so as this will silently fail in CI, as PHPUnit 9 and lower exits with a
0
exit code when no tests are found.For now, I'm removing the tests for the
FileList
class, while keeping the bugfix.I've confirmed this fixes the issue by running the tests of two external standards which both use the PHPCS native test framework. Both were not running their tests with PHPCS 3.13.3 and the tests run correctly again with the
FileList
class tests removed.Suggested changelog entry
Fixed: Tests for external standards using the PHPCS native test framework would no longer run.
Additional information
These tests will not be removed for the 4.x branch. In combination with the 4.x branch, tests for external standards run fine, so I suspect the problem may have something to do with the
TestSuite
mechanism (which has been removed for 4.x).