/**
  * @covers phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter::convert
  * @covers phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter::addInheritedFromTag
  */
 public function testAddInheritedFromTag()
 {
     // Arrange
     $fqcn = 'fqcn';
     $url = 'url';
     $parent = $this->prepareParentXMLElement();
     $parentDescriptor = $this->givenADescriptor()->shouldReceive('getFullyQualifiedStructuralElementName')->andReturn($fqcn)->getMock();
     $descriptor = $this->givenADescriptorWithSummaryDescriptionAndTags('summary', 'description', array())->shouldReceive('getInheritedElement')->andReturn($parentDescriptor)->getMock();
     $ruleMock = $this->givenARuleThatGeneratesTheGivenUrl($url);
     $this->routerMock->shouldReceive('match')->with($parentDescriptor)->andReturn($ruleMock);
     // Act
     $this->fixture->convert($parent, $descriptor);
     // Assert
     $this->assertSame('inherited_from', $parent->getElementsByTagName('tag')->item(0)->getAttribute('name'));
     $this->assertSame($fqcn, $parent->getElementsByTagName('tag')->item(0)->getAttribute('refers'));
     $this->assertSame($fqcn, $parent->getElementsByTagName('tag')->item(0)->getAttribute('description'));
     $this->assertSame($url, $parent->getElementsByTagName('tag')->item(0)->getAttribute('link'));
 }