if (!
$this->
isBlacklisted($mockedClass)) { return [];
} return [ sprintf('Mocking of %s is not allowed. The object is very basic and can be constructed',
$mockedClassString),
];
} private function isTestClass(Scope
$node): bool
{ if ($node->
getClassReflection() === null
) { return false;
} $namespace =
$node->
getClassReflection()->
getName();
if (!\
str_contains($namespace, 'Shopware\\Tests\\Unit\\'
) && !\
str_contains($namespace, 'Shopware\\Tests\\Migration\\'
)) { return false;
} if ($node->
getClassReflection()->
getParentClass() === null
) { return false;
}