Skip to content

Commit 4a17e69

Browse files
committed
chore: skip AssertIssetToSpecificMethodRector in two test classes
1 parent 4bb3635 commit 4a17e69

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

rector.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
4343
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
4444
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
45+
use Rector\PHPUnit\Rector\MethodCall\AssertIssetToSpecificMethodRector;
4546
use Rector\PHPUnit\Set\PHPUnitSetList;
4647
use Rector\Set\ValueObject\LevelSetList;
4748
use Rector\Set\ValueObject\SetList;
@@ -111,6 +112,15 @@
111112

112113
// use mt_rand instead of random_int on purpose on non-cryptographically random
113114
RandomFunctionRector::class,
115+
116+
// $this->assertTrue(isset($bar['foo']))
117+
// and $this->assertArrayHasKey('foo', $bar)
118+
// or $this->assertObjectHasAttribute('foo', $bar);
119+
// are not the same
120+
AssertIssetToSpecificMethodRector::class => [
121+
__DIR__ . '/tests/system/Entity/EntityTest.php',
122+
__DIR__ . '/tests/system/Session/SessionTest.php',
123+
],
114124
]);
115125

116126
// auto import fully qualified class names

0 commit comments

Comments
 (0)