public function AbstractReaderTest::testInvalidAnnotationUsageButIgnoredClass

1 call to AbstractReaderTest::testInvalidAnnotationUsageButIgnoredClass()
SimpleAnnotationReaderTest::testInvalidAnnotationUsageButIgnoredClass in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
@expectedException Doctrine\Common\Annotations\AnnotationException
1 method overrides AbstractReaderTest::testInvalidAnnotationUsageButIgnoredClass()
SimpleAnnotationReaderTest::testInvalidAnnotationUsageButIgnoredClass in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
@expectedException Doctrine\Common\Annotations\AnnotationException

File

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

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testInvalidAnnotationUsageButIgnoredClass() {
  $reader = $this
    ->getReader();
  $ref = new \ReflectionClass('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\InvalidAnnotationUsageButIgnoredClass');
  $annots = $reader
    ->getClassAnnotations($ref);
  $this
    ->assertEquals(2, count($annots));
}