Skip to content

Commit

Permalink
tests: provide nested fixture for AlternativeControlStructureSniff
Browse files Browse the repository at this point in the history
  • Loading branch information
shvlv committed Aug 21, 2024
1 parent 1694d1c commit d2fb3b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/fixtures/alternative-structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
$flag = 'YES';
}
} elseif ($flag === 'NO') { // @phpcsWarningOnThisLine
echo 'no';
while ($flag !== 'YES') { // @phpcsWarningOnThisLine
$flag = 'YES';
?>
<div>No. Yes.</div>
<?php }
} else if ($flag === 'YES') { // @phpcsWarningOnThisLine
echo 'yes';
} else { // @phpcsWarningOnThisLine
Expand Down

0 comments on commit d2fb3b3

Please sign in to comment.