Skip to content
Permalink
Browse files

Add a couple of skipped tests

  • Loading branch information...
muglug committed Aug 14, 2019
1 parent 3d01708 commit 7622f11a201deb6b811123fde08cab2e762e2edf
Showing with 14 additions and 0 deletions.
  1. +14 −0 tests/UnusedVariableTest.php
@@ -1063,6 +1063,20 @@ function foo(object $mock) : void {
$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;
}',
],
];
}

0 comments on commit 7622f11

Please sign in to comment.
You can’t perform that action at this time.