Skip to content

Commit a8e1515

Browse files
committed
[rector] Rector fixes
1 parent 7eb5902 commit a8e1515

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/NodeAnalyzer/TestsNodeAnalyzer.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,7 @@ public function isDirectlyExtendsTestCase(Node $node): bool
5454
if ($parents === []) {
5555
return false;
5656
}
57-
58-
foreach (PHPUnitClassName::TEST_CLASSES as $testCaseObjectClass) {
59-
if ($parents[0]->getName() === $testCaseObjectClass) {
60-
return true;
61-
}
62-
}
63-
64-
return false;
57+
return in_array($parents[0]->getName(), PHPUnitClassName::TEST_CLASSES, true);
6558
}
6659

6760
public function isTestClassMethod(ClassMethod $classMethod): bool

0 commit comments

Comments
 (0)