public function DocParserTest::testAnnotationTargetSyntaxError

@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage Expected namespace separator or identifier, got ')' at position 24 in class @Doctrine\Tests\Common\Annotations\Fixtures\AnnotationWithTargetSyntaxError.

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php, line 795

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testAnnotationTargetSyntaxError() {
  $parser = $this
    ->createTestParser();
  $context = 'class ' . 'SomeClassName';
  $docblock = <<<DOCBLOCK
/**
 * @Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationWithTargetSyntaxError()
 */
DOCBLOCK;
  $parser
    ->setTarget(Target::TARGET_CLASS);
  $parser
    ->parse($docblock, $context);
}