Skip to content

Commit 428c88c

Browse files
committed
Update tests to have more examples with more than one superfluous semicolon
1 parent d4d58f5 commit 428c88c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.1.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function_call();
1919

2020
?>
2121
<input name="<?php ; something_else(); ?>" />
22-
<input name="<?php something_else(); ; ?>" />
22+
<input name="<?php something_else(); ; ; ?>" />
2323

2424
/*
2525
* Test empty statement: no code between PHP open and close tag.
@@ -42,7 +42,7 @@ function_call();
4242
-->
4343
<?php ; ?>
4444

45-
<input name="<?php ; ?>" /> <!-- Bad. -->
45+
<input name="<?php ;; ?>" /> <!-- Bad. -->
4646

4747
<!-- Tests with short open echo tag. -->
4848
<input name="<?= 'some text' ?>" /> <!-- OK. -->

src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ public function getWarningList($testFile='')
7676
15 => 1,
7777
18 => 1,
7878
21 => 1,
79-
22 => 1,
79+
22 => 2,
8080
31 => 1,
8181
33 => 1,
8282
43 => 1,
83-
45 => 1,
83+
45 => 2,
8484
49 => 1,
8585
50 => 1,
8686
57 => 1,

0 commit comments

Comments
 (0)