make test unique

This commit is contained in:
Tomas Votruba 2018-05-30 11:36:29 +02:00
parent e4253a8aa6
commit aac0285c92
2 changed files with 3 additions and 7 deletions

View File

@ -96,10 +96,6 @@ final class ClassLikeAnalyzer
return $node->toString();
}
if ($node->name === null) {
return '';
}
return (string) $node->name;
}

View File

@ -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)
);
}