Skip to content

Commit

Permalink
Add skipped test to sure some stuff that should break
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Oct 18, 2019
1 parent 2be489c commit 46b57cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/RedundantConditionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,17 @@ function a(float $b) : void {
}',
'error_message' => 'RedundantCondition',
],
'SKIPPED-noLongerWarnsAboutRedundancyHere' => [
'<?php
function a(bool $a, bool $b) : void {
if ($a || $b) {
if ($a) {
} elseif ($b) {
}
}
}',
'error_message' => 'RedundantCondition',
]
];
}
}

0 comments on commit 46b57cc

Please sign in to comment.