public function AbstractReaderTest::testClassWithInvalidAnnotationTargetAtClassDocBlock

@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage [Semantical Error] Annotation @AnnotationTargetPropertyMethod is not allowed to be declared on class Doctrine\Tests\Common\Annotations\Fixtures\ClassWithInvalidAnnotationTargetAtClass. You may only use this annotation on these code elements: METHOD, PROPERTY

1 call to AbstractReaderTest::testClassWithInvalidAnnotationTargetAtClassDocBlock()
SimpleAnnotationReaderTest::testClassWithInvalidAnnotationTargetAtClassDocBlock 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::testClassWithInvalidAnnotationTargetAtClassDocBlock()
SimpleAnnotationReaderTest::testClassWithInvalidAnnotationTargetAtClassDocBlock 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 111

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testClassWithInvalidAnnotationTargetAtClassDocBlock() {
  $reader = $this
    ->getReader();
  $reader
    ->getClassAnnotations(new \ReflectionClass('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\ClassWithInvalidAnnotationTargetAtClass'));
}