Skip to content

Commit 88668a0

Browse files
committed
do not skip AssertFuncCallToPHPUnitAssertRector
1 parent 066003d commit 88668a0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

rector.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
3535
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
3636
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
37-
use Rector\PHPUnit\CodeQuality\Rector\FuncCall\AssertFuncCallToPHPUnitAssertRector;
3837
use Rector\PHPUnit\CodeQuality\Rector\StmtsAwareInterface\DeclareStrictTypesTestsRector;
3938
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
4039
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
@@ -157,11 +156,6 @@
157156
// possibly isset() on purpose, on updated Config classes property accross versions
158157
IssetOnPropertyObjectToPropertyExistsRector::class,
159158

160-
AssertFuncCallToPHPUnitAssertRector::class => [
161-
// use $this inside static closure
162-
__DIR__ . '/tests/system/AutoReview/FrameworkCodeTest.php',
163-
],
164-
165159
// some tests extended by other tests
166160
FinalizeTestCaseClassRector::class,
167161

tests/system/AutoReview/FrameworkCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testEachTestClassHasCorrectGroupAttributeName(string $class): vo
6262
$unrecognizedGroups = array_diff(
6363
array_map(static function (ReflectionAttribute $attribute): string {
6464
$groupAttribute = $attribute->newInstance();
65-
assert($groupAttribute instanceof Group);
65+
self::assertInstanceOf(Group::class, $groupAttribute);
6666

6767
return $groupAttribute->name();
6868
}, $attributes),

0 commit comments

Comments
 (0)