/**
  * @covers phpDocumentor\Descriptor\InterfaceDescriptor::getInheritedMethods
  */
 public function testRetrievingInheritedMethodsReturnsCollectionWithParent()
 {
     $parentDescriptor = new MethodDescriptor();
     $parentDescriptor->setName('parent');
     $parentDescriptorCollection = new Collection();
     $parentDescriptorCollection->add($parentDescriptor);
     $parent = new InterfaceDescriptor();
     $parent->setMethods($parentDescriptorCollection);
     $parentCollection = new Collection();
     $parentCollection->add($parent);
     $grandParentDescriptor = new MethodDescriptor();
     $grandParentDescriptor->setName('grandparent');
     $grandParentDescriptorCollection = new Collection();
     $grandParentDescriptorCollection->add($grandParentDescriptor);
     $grandParent = new InterfaceDescriptor();
     $grandParent->setMethods($grandParentDescriptorCollection);
     $grandParentCollection = new Collection();
     $grandParentCollection->add($grandParent);
     $parent->setParent($grandParentCollection);
     $this->fixture->setParent($parentCollection);
     $result = $this->fixture->getInheritedMethods();
     $this->assertInstanceOf('phpDocumentor\\Descriptor\\Collection', $result);
     $this->assertSame(array($parentDescriptor, $grandParentDescriptor), $result->getAll());
 }