/** * @param DocBlock $docblock * @param $wrapLength * @return string */ private function getSummaryAndDescriptionTextBlock(DocBlock $docblock, $wrapLength) { $text = $docblock->getSummary() . "\n\n" . $docblock->getDescription(); if ($wrapLength !== null) { $text = wordwrap($text, $wrapLength); return $text; } return $text; }
/** * @covers ::__construct * @covers ::getDescription * * @uses \phpDocumentor\Reflection\DocBlock\Description */ public function testDocBlockCanHaveADescription() { $description = new DocBlock\Description(''); $fixture = new DocBlock('', $description); $this->assertSame($description, $fixture->getDescription()); }