We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb5902 commit a8e1515Copy full SHA for a8e1515
src/NodeAnalyzer/TestsNodeAnalyzer.php
@@ -54,14 +54,7 @@ public function isDirectlyExtendsTestCase(Node $node): bool
54
if ($parents === []) {
55
return false;
56
}
57
-
58
- foreach (PHPUnitClassName::TEST_CLASSES as $testCaseObjectClass) {
59
- if ($parents[0]->getName() === $testCaseObjectClass) {
60
- return true;
61
- }
62
63
64
- return false;
+ return in_array($parents[0]->getName(), PHPUnitClassName::TEST_CLASSES, true);
65
66
67
public function isTestClassMethod(ClassMethod $classMethod): bool
0 commit comments