Skip to content

Commit

Permalink
Disable unused variables in GlobalScopeTest
Browse files Browse the repository at this point in the history
They will require that
#190 be
backported as well
  • Loading branch information
sirbrillig committed Oct 7, 2020
1 parent 94f6a1d commit 01613e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/VariableAnalysisSniff/GlobalScopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testGlobalScopeWarnings() {
$phpcsFile->process();
$lines = $this->getWarningLineNumbersFromFile($phpcsFile);
$expectedErrors = [
4,
// 4, This should be finding the unused variable but we'll need to backport https://github.com/sirbrillig/phpcs-variable-analysis/pull/190 to 2.x
7,
10,
];
Expand All @@ -33,7 +33,7 @@ public function testGlobalScopeWarningsWithAllowUndefinedVariablesInFileScope()
$phpcsFile->process();
$lines = $this->getWarningLineNumbersFromFile($phpcsFile);
$expectedErrors = [
4,
// 4, This should be finding the unused variable but we'll need to backport https://github.com/sirbrillig/phpcs-variable-analysis/pull/190 to 2.x
10,
];
$this->assertEquals($expectedErrors, $lines);
Expand Down

0 comments on commit 01613e7

Please sign in to comment.