* @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://phpdoc.org */ namespace phpDocumentor\Reflection; use phpDocumentor\Reflection\DocBlock\Description; /** * @coversNothing */ class InterpretingDocBlocksTest extends \PHPUnit_Framework_TestCase { /** * @link ../../examples/interpreting-a-simple-docblock.php */ public function testInterpretingASimpleDocBlock() { /** * @var DocBlock $docblock * @var string $summary * @var Description $description */ include(__DIR__ . '/../../examples/interpreting-a-simple-docblock.php'); $descriptionText = <<assertInstanceOf(DocBlock::class, $docblock); $this->assertSame('This is an example of a summary.', $summary); $this->assertInstanceOf(Description::class, $description); $this->assertSame($descriptionText, $description->render()); $this->assertEmpty($docblock->getTags()); } }