@expectedException \InvalidArgumentException @expectedExceptionMessage Invalid Target "Foo". Available targets: [ALL, CLASS, METHOD, PROPERTY, ANNOTATION]
public function testAnnotationWithInvalidTargetDeclarationError() {
$parser = $this
->createTestParser();
$context = 'class ' . 'SomeClassName';
$docblock = <<<DOCBLOCK
/**
* @AnnotationWithInvalidTargetDeclaration()
*/
DOCBLOCK;
$parser
->setTarget(Target::TARGET_CLASS);
$parser
->parse($docblock, $context);
}