public function AbstractReaderTest::testClassWithInvalidAnnotationTargetAtMethodDocBlock

@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage [Semantical Error] Annotation @AnnotationTargetClass is not allowed to be declared on method Doctrine\Tests\Common\Annotations\Fixtures\ClassWithInvalidAnnotationTargetAtMethod::functionName(). You may only use this annotation on these code elements: CLASS

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

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testClassWithInvalidAnnotationTargetAtMethodDocBlock() {
  $reader = $this
    ->getReader();
  $reader
    ->getMethodAnnotations(new \ReflectionMethod('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\ClassWithInvalidAnnotationTargetAtMethod', 'functionName'));
}