mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 16:02:23 +02:00
make test unique
This commit is contained in:
parent
e4253a8aa6
commit
aac0285c92
@ -96,10 +96,6 @@ final class ClassLikeAnalyzer
|
||||
return $node->toString();
|
||||
}
|
||||
|
||||
if ($node->name === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return (string) $node->name;
|
||||
}
|
||||
|
||||
|
@ -38,12 +38,12 @@ final class ClassLikeAnalyzerTest extends AbstractContainerAwareTestCase
|
||||
|
||||
public function testClassWithParentClass(): void
|
||||
{
|
||||
$classWithParent = $this->builderFactory->class('SomeClass')
|
||||
->extend('ParentClass')
|
||||
$classWithParent = $this->builderFactory->class('AnotherSomeClass')
|
||||
->extend('AnotherParentClass')
|
||||
->getNode();
|
||||
|
||||
$this->assertSame(
|
||||
['SomeClass', 'ParentClass'],
|
||||
['AnotherSomeClass', 'AnotherParentClass'],
|
||||
$this->classLikeAnalyzer->resolveTypeAndParentTypes($classWithParent)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user