squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.66k stars 1.48k forks source link

Config: add tests for the `reportWidth` setting #3820

Closed jrfnl closed 1 year ago

jrfnl commented 1 year ago

Follow up on merged PR #3761

While definitively not a comprehensive set of tests for the Config class, this commit adds an initial set of tests for the Config class verifying that the reportWidth property is handled correctly.

Note: these tests have been set up to already be compatible with PR #3803, which widens the supported PHPUnit version.

:point_right: I have a separate commit ready for these tests for PHPCS 4.x as some changes are needed for PHPCS 4.x.