public function testNamespacedAnnotations() {
$parser = new DocParser();
$parser
->setIgnoreNotImportedAnnotations(true);
$docblock = <<<DOCBLOCK
/**
* Some nifty class.
*
* @package foo
* @subpackage bar
* @author Mr.X <mr@x.com>
* @Doctrine\\Tests\\Common\\Annotations\\Name(foo="bar")
* @ignore
*/
DOCBLOCK;
$result = $parser
->parse($docblock);
$this
->assertEquals(1, count($result));
$annot = $result[0];
$this
->assertTrue($annot instanceof Name);
$this
->assertEquals("bar", $annot->foo);
}