Skip to content
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

WPCS 2.0.0: Remove unit test work-arounds for PHPCS 2.x #1558

Merged
merged 1 commit into from
Dec 19, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 19, 2018

The duplicates of the PHPCS 2.x test controller files, as introduced in 10847d8, can now be removed.

We also no longer need to load our PHPCSAliases file, not even for the autoloading of the abstract classes as PHPCS 3.1.0+ handles this without problem.

For PHPUnit 6/7.x support, PHPCS does need a bootstrap file, but that is included with PHPCS, so all we need to do is reference that file in the command send to PHPUnit.

N.B.: This PR does not remove the PHPCSAliases file as it may still be needed. See squizlabs/PHP_CodeSniffer#1591. This needs further testing.

The duplicates of the PHPCS 2.x test controller files can now be removed.

We also no longer need to load our `PHPCSAliases` file, not even for the autoloading of the abstract classes as PHPCS 3.1.0+handles this without problem.

For PHPUnit 7.x support, PHPCS does need a bootstrap file, but that is included with PHPCS, so all we need to do is reference that file in the command send to PHPUnit.
@GaryJones GaryJones merged commit c4366ae into develop Dec 19, 2018
@GaryJones GaryJones deleted the feature/drop-phpcs-2-unit-test-work-arounds branch December 19, 2018 13:47
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