public function DCOM58Test::testIssueMultipleNamespaces

File

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

Class

DCOM58Test
@group DCOM58

Namespace

Doctrine\Tests\Common\Annotations\Ticket

Code

public function testIssueMultipleNamespaces() {
  $docblock = "@Entity";
  $parser = new \Doctrine\Common\Annotations\DocParser();
  $parser
    ->addNamespace("Doctrine\\Tests\\Common\\Annotations\\Ticket\\Doctrine\\ORM\\Mapping");
  $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\\Mapping\\Entity", $annots[0]);
}