Skip to content

Commit 6bf2140

Browse files
committed
PEAR/ScopeClosingBrace: add tests for enum support
1 parent 2596a15 commit 6bf2140

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,13 @@ $match = match ($test) {
152152
1 => 'a',
153153
2 => 'b'
154154
};
155+
156+
enum Enum
157+
{
158+
}
159+
160+
enum Suits {}
161+
162+
enum Cards
163+
{
164+
}

src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,14 @@ $match = match ($test) {
157157
1 => 'a',
158158
2 => 'b'
159159
};
160+
161+
enum Enum
162+
{
163+
}
164+
165+
enum Suits {
166+
}
167+
168+
enum Cards
169+
{
170+
}

src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function getErrorList()
4242
146 => 1,
4343
149 => 1,
4444
154 => 1,
45+
160 => 1,
46+
164 => 1,
4547
];
4648

4749
}//end getErrorList()

0 commit comments

Comments
 (0)