Exemplo n.º 1
0
    /**
     * @covers \phpDocumentor\Reflection\DocBlock::isTemplateStart
     */
    public function testIfStartOfTemplateIsDiscovered()
    {
        $fixture = <<<DOCBLOCK
/**#@+
 * @see \\MyClass
 * @return void
 */
DOCBLOCK;
        $object = new DocBlock($fixture);
        $this->assertEquals('', $object->getShortDescription());
        $this->assertEquals('', $object->getLongDescription()->getContents());
        $this->assertCount(2, $object->getTags());
        $this->assertTrue($object->hasTag('see'));
        $this->assertTrue($object->hasTag('return'));
        $this->assertFalse($object->hasTag('material_unit'));
        $this->assertTrue($object->isTemplateStart());
    }
Exemplo n.º 2
0
 /**
  * @covers ::__construct
  * @covers ::isTemplateStart
  *
  * @uses \phpDocumentor\Reflection\DocBlock\Description
  */
 public function testDocBlockKnowsIfItIsTheStartOfADocBlockTemplate()
 {
     $fixture = new DocBlock('', null, [], null, null, true);
     $this->assertTrue($fixture->isTemplateStart());
 }