public function AbstractReaderTest::testInvalidAnnotationButIgnored

@group DDC-1660 @group regression

1 method overrides AbstractReaderTest::testInvalidAnnotationButIgnored()
SimpleAnnotationReaderTest::testInvalidAnnotationButIgnored in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
@group DDC-1660 @group regression

File

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

Class

AbstractReaderTest

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(0, $reader
    ->getClassAnnotations($class));
  $this
    ->assertCount(0, $reader
    ->getMethodAnnotations($class
    ->getMethod('bar')));
  $this
    ->assertCount(0, $reader
    ->getPropertyAnnotations($class
    ->getProperty('foo')));
}