You are here

public function DocBlockTest::testIfStartOfTemplateIsDiscovered in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlockTest.php \phpDocumentor\Reflection\DocBlockTest::testIfStartOfTemplateIsDiscovered()

@covers \phpDocumentor\Reflection\DocBlock::isTemplateStart

File

vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlockTest.php, line 97

Class

DocBlockTest
Test class for phpDocumentor\Reflection\DocBlock

Namespace

phpDocumentor\Reflection

Code

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('category'));
  $this
    ->assertTrue($object
    ->isTemplateStart());
}