@expectedException \InvalidArgumentException @expectedExceptionMessage @Target expects either a string value, or an array of strings, "NULL" given.
public function testAnnotationWithTargetEmptyError() {
$parser = $this
->createTestParser();
$context = 'class ' . 'SomeClassName';
$docblock = <<<DOCBLOCK
/**
* @AnnotationWithTargetEmpty()
*/
DOCBLOCK;
$parser
->setTarget(Target::TARGET_CLASS);
$parser
->parse($docblock, $context);
}