/**
* @param InClassNode $node
*
* @return array<array-key, RuleError|string>
*/
public function processNode(Node
$node, Scope
$scope): array
{ if ($this->
hasCovers($node)) { return [];
} if ($this->
isTestClass($node)) { return ['Test classes must have @covers annotation'
];
} return [];
} private function isTestClass(InClassNode
$node): bool
{ $namespace =
$node->
getClassReflection()->
getName();
if (!\
str_contains($namespace, 'Shopware\\Tests\\Unit\\'
) && !\
str_contains($namespace, 'Shopware\\Tests\\Migration\\'
)) {