class DCOM58Test extends TestCase
{ protected function setUp(): void
{ // Some class named Entity in the global namespace.
include __DIR__ .'/DCOM58Entity.php';
} public function testIssueGlobalNamespace() { $docblock = "@Entity";
$parser =
new DocParser();
$parser->
setImports(array
( "__NAMESPACE__" =>"Drupal\Tests\Component\Annotation\Doctrine\Ticket\Doctrine\ORM\Mapping"
));
$annots =
$parser->
parse($docblock);
$this->
assertCount(1,
$annots);
$this->
assertInstanceOf("Drupal\Tests\Component\Annotation\Doctrine\Ticket\Doctrine\ORM\Mapping\Entity",
$annots[0
]);
} public function testIssueNamespaces() {