PHPCSUtils

phpcsutils-autoload.php

PHPCSUtils, utility functions and classes for PHP_CodeSniffer sniff developers.

Autoloader for the PHPCSUtils files. Also provides PHPCS cross-version class aliases.

  • If an external standard only supports PHPCS >= 3.1.0 and uses the PHPCS native unit test framework, this file does not need to be included.

  • When PHPCS 2.x support is desired, include the "PHPCS23Utils" standard in the ruleset of the external standard and this file will be included automatically. Including this file will allow PHPCSUtils to work in both PHPCS 2.x as well as PHPCS 3.x.

  • If an external standard uses its own unit test setup, this file should be included from the unit test bootstrap file.

  • If an external standard uses the PHPCSUtils UtilityMethodTestCase class to test their own utility methods, this file should be included from the unit test bootstrap file.

Tags
copyright

2019-2020 PHPCSUtils Contributors

license

https://opensource.org/licenses/LGPL-3.0 LGPL3

link
https://github.com/PHPCSStandards/PHPCSUtils
since
1.0.0

Table of Contents

PHPCSUTILS_AUTOLOAD  = \true
PHPCSUTILS_PHPCS_ALIASES_SET  = \true
PHPCSUTILS_PHPUNIT_ALIASES_SET  = \true

Constants

Search results