Ruleset
Table of Contents
Classes
- AbstractRulesetTestCase
- ConstructorTest
- Test various aspects of the Ruleset::__construct() method not covered via other tests.
- DisplayCachedMessagesTest
- Test error handling for the Ruleset.
- ExpandRulesetReferenceHomePathTest
- Test home path handling in the Ruleset::expandRulesetReference() method.
- ExpandRulesetReferenceInternalTest
- Test handling of "internal" references in the Ruleset::expandRulesetReference() method.
- ExpandRulesetReferenceTest
- Test various aspects of the Ruleset::expandRulesetReference() method not covered by other tests.
- ExpandSniffDirectoryTest
- Test the Ruleset::expandSniffDirectory() method.
- ExplainTest
- Test the Ruleset::explain() function.
- GetIgnorePatternsTest
- Test the Ruleset::getIgnorePatterns() method.
- GetIncludePatternsTest
- Test the Ruleset::getIncludePatterns() method.
- PopulateTokenListenersNamingConventionsTest
- Test handling of sniffs not following the PHPCS naming conventions in the Ruleset::populateTokenListeners() method.
- PopulateTokenListenersSupportedTokenizersTest
- Test the Ruleset::populateTokenListeners() method shows a deprecation notice for sniffs supporting JS and/or CSS tokenizers.
- PopulateTokenListenersTest
- Test the Ruleset::populateTokenListeners() method.
- ProcessRuleInvalidTypeTest
- Test handling of invalid type elements.
- ProcessRulesetAutoloadTest
- Test handling of <autoload> instructions.
- ProcessRulesetBrokenRulesetTest
- Test handling of broken ruleset files.
- ProcessRulesetShouldProcessElementTest
- Test handling of `phpc(cs|cbf)-only` instructions at ruleset level.
- ProcessRulesetTest
- Test various aspects of the Ruleset::processRuleset() method not covered via other tests.
- ProcessRuleShouldProcessElementTest
- Test handling of `phpc(cs|cbf)-only` instructions at rule level.
- PropertyTypeHandlingTest
- Test the handling of property value types for properties set via the ruleset and inline.
- RegisterSniffsMissingInterfaceTest
- Tests deprecation of support for sniffs not implementing the PHPCS `Sniff` interface.
- RegisterSniffsRejectsInvalidSniffTest
- Tests that invalid sniffs will be rejected with an informative error message.
- RegisterSniffsTest
- Test the Ruleset::registerSniffs() method.
- RuleInclusionAbsoluteLinuxTest
- Tests for the \PHP_CodeSniffer\Ruleset class using a Linux-style absolute path to include a sniff.
- RuleInclusionAbsoluteWindowsTest
- Tests for the \PHP_CodeSniffer\Ruleset class using a Windows-style absolute path to include a sniff.
- RuleInclusionTest
- Tests for the \PHP_CodeSniffer\Ruleset class.
- SetSniffPropertyTest
- These tests specifically focus on the changes made to work around the PHP 8.2 dynamic properties deprecation.
- ShowSniffDeprecationsTest
- Tests PHPCS native handling of sniff deprecations.