/** * @covers \phpDocumentor\Reflection\DocBlock::isTemplateEnd */ public function testIfEndOfTemplateIsDiscovered() { $fixture = <<<DOCBLOCK /**#@-*/ DOCBLOCK; $object = new DocBlock($fixture); $this->assertEquals('', $object->getShortDescription()); $this->assertEquals('', $object->getLongDescription()->getContents()); $this->assertTrue($object->isTemplateEnd()); }
/** * @covers ::__construct * @covers ::isTemplateEnd * * @uses \phpDocumentor\Reflection\DocBlock\Description */ public function testDocBlockKnowsIfItIsTheEndOfADocBlockTemplate() { $fixture = new DocBlock('', null, [], null, null, false, true); $this->assertTrue($fixture->isTemplateEnd()); }