function DCOM58Test::testIssueWithNamespacesOrImports

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php \Drupal\Tests\Component\Annotation\Doctrine\Ticket\DCOM58Test::testIssueWithNamespacesOrImports()
  2. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php \Drupal\Tests\Component\Annotation\Doctrine\Ticket\DCOM58Test::testIssueWithNamespacesOrImports()
  3. 11.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php \Drupal\Tests\Component\Annotation\Doctrine\Ticket\DCOM58Test::testIssueWithNamespacesOrImports()

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php, line 70

Class

DCOM58Test
This class is a near-copy of \Doctrine\Tests\Common\Annotations\Ticket\DCOM58Test, which is part of the Doctrine project: <http://www.doctrine-project.org&gt;. It was copied from version 1.2.7.

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Ticket

Code

public function testIssueWithNamespacesOrImports() {
    $docblock = "@Entity";
    $parser = new DocParser();
    $annots = $parser->parse($docblock);
    $this->assertCount(1, $annots);
    $this->assertInstanceOf("Entity", $annots[0]);
    $this->assertCount(1, $annots);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.