Skip to content

Commit 83ef2a0

Browse files
committed
Add more final keyword test cases
1 parent 903c13f commit 83ef2a0

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.1.inc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,14 @@ $anon = new readonly class {};
151151
class FinalTest {
152152
final public static function create(ContainerInterface $container) {}
153153
}
154+
155+
final class FinalTest2 {
156+
}
157+
158+
final abstract class FinalTest3 {
159+
}
160+
161+
class FinalTest4 {
162+
final const X = "foo";
163+
final public const Y = "bar";
164+
}

src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.1.inc.fixed

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,14 @@ $anon = new readonly class {};
145145
class FinalTest {
146146
final public static function create(ContainerInterface $container) {}
147147
}
148+
149+
final class FinalTest2 {
150+
}
151+
152+
final abstract class FinalTest3 {
153+
}
154+
155+
class FinalTest4 {
156+
final const X = "foo";
157+
final public const Y = "bar";
158+
}

src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function getErrorList($testFile='')
5959
145 => 1,
6060
149 => 1,
6161
152 => 1,
62+
155 => 1,
63+
158 => 1,
64+
162 => 1,
65+
163 => 1,
6266
];
6367

6468
case 'ScopeKeywordSpacingUnitTest.3.inc':

0 commit comments

Comments
 (0)