Skip to content

Commit

Permalink
Add a couple of skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Aug 14, 2019
1 parent 3d01708 commit 7622f11
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/UnusedVariableTest.php
Expand Up @@ -1063,6 +1063,20 @@ function foo(object $mock) : void {
$m->setValue([get_class($mock) => "hello"]); $m->setValue([get_class($mock) => "hello"]);
}' }'
], ],
'SKIPPED-defineBeforeAssignmentInConditional' => [
'<?php
$i = null;
if (rand(0, 1) || ($i = rand(0, 1))) {
echo $i;
}',
],
'SKIPPED-definedInFirstAssignmentInConditional' => [
'<?php
if (($b = rand(0, 1)) || rand(0, 1)) {
echo $b;
}',
],
]; ];
} }


Expand Down

0 comments on commit 7622f11

Please sign in to comment.