Skip to content

Commit

Permalink
Add test case with one statement on several lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Jun 12, 2023
1 parent 34ba861 commit 2067e7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ $a = new class {
// two here, but not six.)
echo 'one'; echo 'two'; echo 'three';

// A single statement split across multiple lines. Here we get complaints for
// each line, even though they're all part of one statement.
echo 'one' . 'two'
. 'three' . 'four'
. 'five' . 'six';

interface MyInterface {
3 changes: 3 additions & 0 deletions src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function getWarningList($testFile='')
14 => 1,
54 => 2,
65 => 2,
69 => 2,
70 => 2,
71 => 2,
];
break;
case 'NonExecutableCodeUnitTest.3.inc':
Expand Down

0 comments on commit 2067e7c

Please sign in to comment.