RuleInclusionAbsoluteLinuxTest
extends TestCase
in package
FinalYes
Tests for the \PHP_CodeSniffer\Ruleset class using a Linux-style absolute path to include a sniff.
Tags
Table of Contents
Properties
- $ruleset : Ruleset
- The Ruleset object.
- $contents : string
- The original content of the ruleset.
- $standard : string
- Path to the ruleset file.
Methods
- initializeConfigAndRuleset() : void
- Initialize the config and ruleset objects.
- resetRuleset() : void
- Reset ruleset file.
- testLinuxStylePathRuleInclusion() : void
- Test that sniffs registed with a Linux absolute path are correctly recognized and that properties are correctly set for them.
Properties
$ruleset
The Ruleset object.
protected
Ruleset
$ruleset
$contents
The original content of the ruleset.
private
string
$contents
= ''
$standard
Path to the ruleset file.
private
string
$standard
= ''
Methods
initializeConfigAndRuleset()
Initialize the config and ruleset objects.
public
initializeConfigAndRuleset() : void
Tags
resetRuleset()
Reset ruleset file.
public
resetRuleset() : void
Tags
testLinuxStylePathRuleInclusion()
Test that sniffs registed with a Linux absolute path are correctly recognized and that properties are correctly set for them.
public
testLinuxStylePathRuleInclusion() : void