Skip to content

Commit 991ed9a

Browse files
author
Wietse Warendorff
committed
Add extra testcase for PSR2.Classes.ClassDeclaration.SpaceAfterKeyword
1 parent e72994f commit 991ed9a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,8 @@ class C7 extends // comment
231231
\Foo\Bar implements \Baz\Bar
232232
{
233233
}
234+
235+
class
236+
C8
237+
{
238+
}

src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,7 @@ interface I6 extends // comment
225225
class C7 extends \Foo\Bar implements \Baz\Bar // comment
226226
{
227227
}
228+
229+
class C8
230+
{
231+
}

src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function getErrorList()
6262
215 => 2,
6363
216 => 1,
6464
231 => 2,
65+
235 => 1,
6566
];
6667

6768
}//end getErrorList()

0 commit comments

Comments
 (0)