Skip to content

Commit abe0bdf

Browse files
committed
Squiz/SwitchDeclaration: minor test tweaks to make sure all new code is covered by tests
1 parent fb9e285 commit abe0bdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ doSomething();
347347

348348
// Bug: the below should not throw "Blank lines are not allowed before/after..." errors (as there are no blank lines).
349349
// Instead the sniff should flag case/default/break statements not being on their own line.
350-
switch ($condition) {case 'string': $varStr = 'one line'; break;case 'bool':$varStr = 'one line';return $foo;default: $varStr = 'test'; break;}
350+
switch ($condition) {case 'string': $varStr = 'one line'; break; case 'bool':$varStr = 'one line';return $foo;default: $varStr = 'test'; break;}
351351

352352
switch ($condition) {
353-
case 'string': /*test comment handling when adding new lines*/$varStr = 'one line';/*test comment handling when adding new lines*/ break;
354-
default:/*test comment handling when adding new lines*/ $varStr = 'test'; /*test comment handling when adding new lines*/break;
353+
case 'string': /*test comment handling when adding new lines*/$varStr = 'one line';/*test comment handling when adding new lines*/ break;
354+
default:/*test comment handling when adding new lines*/ $varStr = 'test'; /*test comment handling when adding new lines*/break;
355355
}
356356

357357
switch ($condition) {

0 commit comments

Comments
 (0)