Skip to content

Commit 62143d2

Browse files
committed
Tests: Fix more invalid php in fixtures
1 parent 9d86ccb commit 62143d2

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

VariableAnalysis/Tests/CodeAnalysis/VariableAnalysisTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,7 @@ public function testFunctionsOutsideClassErrors() {
190190
$phpcsFile = $this->prepareLocalFileForSniffs($this->getSniffFiles(), $fixtureFile);
191191
$phpcsFile->process();
192192
$lines = $this->getErrorLineNumbersFromFile($phpcsFile);
193-
$expectedErrors = [
194-
8,
195-
12,
196-
];
193+
$expectedErrors = [];
197194
$this->assertEquals($expectedErrors, $lines);
198195
}
199196

VariableAnalysis/Tests/CodeAnalysis/fixtures/FunctionsOutsideClassFixture.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,3 @@
22
function function_with_this_outside_class() {
33
return $this->whatever();
44
}
5-
6-
function function_with_static_members_outside_class() {
7-
echo SomeOtherClass::$external_static_member_var;
8-
return self::$whatever;
9-
}
10-
11-
function function_with_late_static_binding_outside_class() {
12-
echo static::$whatever;
13-
}

0 commit comments

Comments
 (0)