public function AbstractReaderTest::testIgnoresAnnotationsNotPrefixedWithWhitespace

File

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

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testIgnoresAnnotationsNotPrefixedWithWhitespace() {
  $reader = $this
    ->getReader();
  $annotation = $reader
    ->getClassAnnotation(new \ReflectionClass(new TestIgnoresNonAnnotationsClass()), 'Doctrine\\Tests\\Common\\Annotations\\Name');
  $this
    ->assertInstanceOf('Doctrine\\Tests\\Common\\Annotations\\Name', $annotation);
}