Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 14, 2025

Description

Tests are no longer included in zip packages, but the test framework files will be.

This is set up in this way to prevent external standards having to use --prefer-source when their (sniff) tests are using the PHPCS test framework.

Suggested changelog entry

Changed:

  • Composer installs no longer include any test files.
    • The test framework files will still be included to allow for use by external standards.

Related issues/external references

Fixes squizlabs/PHP_CodeSniffer#1908
Fixes squizlabs/PHP_CodeSniffer#3158
Closes #73
Fixes #636

.. but the test _framework_ files will be.

This is set up in this way to prevent external standards having to use `--prefer-source` when their (sniff) tests are using the PHPCS test framework.

Fixes squizlabs/PHP_CodeSniffer 1908
Fixes squizlabs/PHP_CodeSniffer 3158
Closes #73
Fixes 636

Co-authored-by: jrfnl <[email protected]>
@jrfnl jrfnl merged commit 5380a4b into 4.x Apr 15, 2025
54 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/sq-1908-gitattributes-export-ignore-tests branch April 15, 2025 10:35
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.

3 participants