public function AbstractReaderTest::testTopLevelAnnotation

File

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

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testTopLevelAnnotation() {
  $reader = $this
    ->getReader();
  $annotations = $reader
    ->getPropertyAnnotations(new \ReflectionProperty('Doctrine\\Tests\\Common\\Annotations\\TestTopLevelAnnotationClass', 'field'));
  $this
    ->assertEquals(1, count($annotations));
  $this
    ->assertInstanceOf('\\TopLevelAnnotation', reset($annotations));
}