-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Refactor/modernize test suite setup #3395
Comments
While the PHP 8.1 issues have been solved by now, I'm going to leave this issue open, as IMO a refactor of the test suite setup may still be a good idea and make the setup more sustainable in the long run. The setup as is, with the |
As things are at this time, if PHPCS wants to allow running tests on PHPUnit 10.x (which it should), at least two things needs to happen (maybe more):
If losing the line created via the bootstrap The As fixing this would mean breaking changes for any external standard which uses the PHPCS base test classes for their own test suites, I'd recommend for these changes to be made in PHPCS 4.0.0 and no later than that. |
I don't think it's a big deal. I used it during the build of PHPCBF to see how I was going with auto-fixing, but I don't look at it any more. I'm happy to remove it and then look to adding it back in a different way if we ever feel it's needed again. |
Closing as replaced by PHPCSStandards/PHP_CodeSniffer#25 |
As I've been seeing new issues popping up elsewhere with some of the recent changes in PHP 8.1, I had a look at the latest test run for this repo and as I feared, the tests break on PHP 8.1 due to PHPUnit 7.5 being used.
See: https://github.com/squizlabs/PHP_CodeSniffer/runs/3118862021?check_suite_focus=true
As PHPUnit 7.5 is no longer supported, this will not be fixed on the PHPUnit side of things.
I think a refactor of the test suite setup is in order to allow it to be compatible with a wider range of PHPUnit versions, preferably without BC-break in the setup as quite a lot of external standards use the PHPCS native abstract test classes for their tests as well.
The text was updated successfully, but these errors were encountered: