public function DocParserTest::testWithoutConstructorWhenIsNotDefaultValue

@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage The annotation @SomeAnnotationClassNameWithoutConstructorAndProperties declared on does not accept any values, but got {"value":"Foo"}.

File

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

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testWithoutConstructorWhenIsNotDefaultValue() {
  $parser = $this
    ->createTestParser();
  $docblock = <<<DOCBLOCK
/**
 * @SomeAnnotationClassNameWithoutConstructorAndProperties("Foo")
 */
DOCBLOCK;
  $parser
    ->setTarget(Target::TARGET_CLASS);
  $parser
    ->parse($docblock);
}