Skip to content

Commit 77a01e7

Browse files
authored
Merge pull request #153 from PHPCSStandards/feature/sniffs-tests-fix-typo
PHPCSDebug: fix "typo" in tests
2 parents 9831647 + 68221eb commit 77a01e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

PHPCSDebug/Tests/Debug/TokenListCssTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testOutput()
116116
$this->expectOutputString($expected);
117117
$this->setOutputCallback([$this, 'normalizeLineEndings']);
118118

119-
if (empty($this->ruleset->tokenListeners)) {
119+
if (empty(self::$phpcsFile->ruleset->tokenListeners)) {
120120
// PHPCSUtils 1.0.9+.
121121
$sniffFile = \dirname(\dirname(__DIR__)) . \DIRECTORY_SEPARATOR . 'Sniffs';
122122
$sniffFile .= \DIRECTORY_SEPARATOR . 'Debug' . \DIRECTORY_SEPARATOR . 'TokenListSniff.php';

PHPCSDebug/Tests/Debug/TokenListJsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function testOutput()
136136
$this->expectOutputString($expected);
137137
$this->setOutputCallback([$this, 'normalizeLineEndings']);
138138

139-
if (empty($this->ruleset->tokenListeners)) {
139+
if (empty(self::$phpcsFile->ruleset->tokenListeners)) {
140140
// PHPCSUtils 1.0.9+.
141141
$sniffFile = \dirname(\dirname(__DIR__)) . \DIRECTORY_SEPARATOR . 'Sniffs';
142142
$sniffFile .= \DIRECTORY_SEPARATOR . 'Debug' . \DIRECTORY_SEPARATOR . 'TokenListSniff.php';

PHPCSDebug/Tests/Debug/TokenListUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testOutput()
109109
$this->expectOutputString($expected);
110110
$this->setOutputCallback([$this, 'normalizeLineEndings']);
111111

112-
if (empty($this->ruleset->tokenListeners)) {
112+
if (empty(self::$phpcsFile->ruleset->tokenListeners)) {
113113
// PHPCSUtils 1.0.9+.
114114
$sniffFile = \dirname(\dirname(__DIR__)) . \DIRECTORY_SEPARATOR . 'Sniffs';
115115
$sniffFile .= \DIRECTORY_SEPARATOR . 'Debug' . \DIRECTORY_SEPARATOR . 'TokenListSniff.php';

0 commit comments

Comments
 (0)