Skip to content

Commit e46df20

Browse files
committed
ShowSniffDeprecationsTest: fix bug in tests
Wasn't noticeable, still a bug.
1 parent 42455d7 commit e46df20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Core/Ruleset/ShowSniffDeprecationsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenSelectedSniffsAreNotDepre
147147
];
148148
foreach ($sniffs as $sniffCode) {
149149
$parts = explode('.', strtolower($sniffCode));
150-
$sniffName = $parts[0].'\sniffs\\'.$parts[1].'\\'.$parts[2].'sniff';
150+
$sniffName = $parts[0].'\\sniffs\\'.$parts[1].'\\'.$parts[2].'sniff';
151151
$restrictions[strtolower($sniffName)] = true;
152152
}
153153

@@ -159,7 +159,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenSelectedSniffsAreNotDepre
159159
$sniffFiles[] = $sniffFile;
160160
}
161161

162-
$ruleset->registerSniffs($allSniffs, $restrictions, []);
162+
$ruleset->registerSniffs($sniffFiles, $restrictions, []);
163163
$ruleset->populateTokenListeners();
164164

165165
$this->expectOutputString('');
@@ -196,7 +196,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenAllDeprecatedSniffsAreExc
196196
];
197197
foreach ($exclude as $sniffCode) {
198198
$parts = explode('.', strtolower($sniffCode));
199-
$sniffName = $parts[0].'\sniffs\\'.$parts[1].'\\'.$parts[2].'sniff';
199+
$sniffName = $parts[0].'\\sniffs\\'.$parts[1].'\\'.$parts[2].'sniff';
200200
$exclusions[strtolower($sniffName)] = true;
201201
}
202202

@@ -208,7 +208,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenAllDeprecatedSniffsAreExc
208208
$sniffFiles[] = $sniffFile;
209209
}
210210

211-
$ruleset->registerSniffs($allSniffs, [], $exclusions);
211+
$ruleset->registerSniffs($sniffFiles, [], $exclusions);
212212
$ruleset->populateTokenListeners();
213213

214214
$this->expectOutputString('');

0 commit comments

Comments
 (0)