/**
  * @covers phpDocumentor\Descriptor\DescriptorAbstract::setSummary
  * @covers phpDocumentor\Descriptor\DescriptorAbstract::getSummary
  */
 public function testSettingAndGettingSummary()
 {
     $this->assertSame('', $this->fixture->getSummary());
     $this->fixture->setSummary('summary');
     $this->assertSame('summary', $this->fixture->getSummary());
 }
 /**
  * Adds the short description of $docblock to the given node as description
  * field.
  *
  * @param \DOMElement        $node
  * @param DescriptorAbstract $element
  *
  * @return void
  */
 protected function addSummary(\DOMElement $node, DescriptorAbstract $element)
 {
     $node->appendChild(new \DOMElement('description'))->appendChild(new \DOMText($element->getSummary()));
 }