public function SimpleAnnotationReaderTest::testInvalidAnnotationButIgnored

@group DDC-1660 @group regression

Contrary to the behavior of the default annotation reader, @version is not ignored

Overrides AbstractReaderTest::testInvalidAnnotationButIgnored

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php, line 77

Class

SimpleAnnotationReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testInvalidAnnotationButIgnored() {
  $reader = $this
    ->getReader();
  $class = new \ReflectionClass('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\ClassDDC1660');
  $this
    ->assertTrue(class_exists('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\Annotation\\Version'));
  $this
    ->assertCount(1, $reader
    ->getClassAnnotations($class));
  $this
    ->assertCount(1, $reader
    ->getMethodAnnotations($class
    ->getMethod('bar')));
  $this
    ->assertCount(1, $reader
    ->getPropertyAnnotations($class
    ->getProperty('foo')));
}