public function DCOM58Test::testIssueNamespaces

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Test.php, line 38

Class

DCOM58Test
@group DCOM58

Namespace

Doctrine\Tests\Common\Annotations\Ticket

Code

public function testIssueNamespaces() {
  $docblock = "@Entity";
  $parser = new \Doctrine\Common\Annotations\DocParser();
  $parser
    ->addNamespace("Doctrine\\Tests\\Common\\Annotations\\Ticket\\Doctrine\\ORM");
  $annots = $parser
    ->parse($docblock);
  $this
    ->assertEquals(1, count($annots));
  $this
    ->assertInstanceOf("Doctrine\\Tests\\Common\\Annotations\\Ticket\\Doctrine\\ORM\\Entity", $annots[0]);
}