/**
  * Checks if $entityClassName is equal to $className
  * or has $className as one of its parent entities/mapped superclasses
  *
  * @param string $entityClassName
  * @param string $className
  * @return bool
  */
 protected function isEntityMatched($entityClassName, $className)
 {
     if ($entityClassName === $className) {
         return true;
     }
     return in_array($className, $this->entityHierarchyProvider->getHierarchyForClassName($entityClassName));
 }
 /**
  * @dataProvider getHierarchyForClassNameProvider
  */
 public function testGetHierarchyForClassName($className, $expected)
 {
     $this->assertEquals($expected, $this->provider->getHierarchyForClassName($className));
 }