Skip to content

Commit 0bce916

Browse files
committed
Added unit tests and changelog
1 parent c8cbbb6 commit 0bce916

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,12 @@ switch ($httpResponseCode) {
8888
switch($i) {
8989
case 1: {}
9090
}
91-
?>
91+
92+
switch ($httpResponseCode) {
93+
case 100:
94+
case 101:
95+
case 102:
96+
exit;
97+
default:
98+
exit;
99+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function getErrorList()
5050
65 => 1,
5151
85 => 1,
5252
89 => 1,
53+
98 => 1,
5354
);
5455

5556
}//end getErrorList()

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
3434
-- Thanks to Antoine Musso for the patch
3535
- Comment parser now supports non-English characters when splitting comment lines into words
3636
-- Thanks to Nik Sun for the patch
37+
- Exit statements are now recognised as valid closers for CASE and DEFAULT blocks
3738
- Fixed bug #20097 : CLI.php throws error in php 5.2
3839
- Fixed bug #20100 : incorrect Function mysql() has been deprecated report
3940
</notes>

0 commit comments

Comments
 (0)