Skip to content

Commit 2bb6f39

Browse files
committed
Squiz/ScopeClosingBrace: add tests for enum support
1 parent 380e17b commit 2bb6f39

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,15 @@ $match = match ($test) {
120120
<div class="container">
121121

122122
</div> <?php endif; ?>
123+
124+
<?php
125+
126+
enum Enum
127+
{
128+
}
129+
130+
enum Suits {}
131+
132+
enum Cards
133+
{
134+
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,16 @@ $match = match ($test) {
123123

124124
</div>
125125
<?php endif; ?>
126+
127+
<?php
128+
129+
enum Enum
130+
{
131+
}
132+
133+
enum Suits {
134+
}
135+
136+
enum Cards
137+
{
138+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function getErrorList()
3434
111 => 1,
3535
116 => 1,
3636
122 => 1,
37+
130 => 1,
38+
134 => 1,
3739
];
3840

3941
}//end getErrorList()

0 commit comments

Comments
 (0)