public function DocParserTest::testAnnotationWithTargetEmptyError

@expectedException \InvalidArgumentException @expectedExceptionMessage @Target expects either a string value, or an array of strings, "NULL" given.

File

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

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testAnnotationWithTargetEmptyError() {
  $parser = $this
    ->createTestParser();
  $context = 'class ' . 'SomeClassName';
  $docblock = <<<DOCBLOCK
/**
 * @AnnotationWithTargetEmpty()
 */
DOCBLOCK;
  $parser
    ->setTarget(Target::TARGET_CLASS);
  $parser
    ->parse($docblock, $context);
}