public function AbstractReaderTest::testClassWithInvalidNestedAnnotationTargetAtPropertyDocBlock

@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage [Semantical Error] Annotation @AnnotationTargetAnnotation is not allowed to be declared on property Doctrine\Tests\Common\Annotations\Fixtures\ClassWithInvalidAnnotationTargetAtProperty::$bar. You may only use this annotation on these code elements: ANNOTATION

1 call to AbstractReaderTest::testClassWithInvalidNestedAnnotationTargetAtPropertyDocBlock()
SimpleAnnotationReaderTest::testClassWithInvalidNestedAnnotationTargetAtPropertyDocBlock in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
Contrary to the behavior of the default annotation reader, we do just ignore these in the simple annotation reader (so, no expected exception here).
1 method overrides AbstractReaderTest::testClassWithInvalidNestedAnnotationTargetAtPropertyDocBlock()
SimpleAnnotationReaderTest::testClassWithInvalidNestedAnnotationTargetAtPropertyDocBlock in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
Contrary to the behavior of the default annotation reader, we do just ignore these in the simple annotation reader (so, no expected exception here).

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/AbstractReaderTest.php, line 131

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testClassWithInvalidNestedAnnotationTargetAtPropertyDocBlock() {
  $reader = $this
    ->getReader();
  $reader
    ->getPropertyAnnotations(new \ReflectionProperty('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\ClassWithInvalidAnnotationTargetAtProperty', 'bar'));
}