RulesetDouble
extends Ruleset
in package
FinalYes
Ruleset class for use in the tests.
The PHP_CodeSniffer Ruleset will throw an error when no (valid) sniffs are registered, but for utility method tests, we're not concerned about that.
This ruleset double will catch this error and discard it.
Tags
Table of Contents
Methods
- __construct() : void
- Initialise the ruleset that the run will use.
Methods
__construct()
Initialise the ruleset that the run will use.
public
__construct(Config $config) : void
Parameters
- $config : Config
-
The config data for the run.