public function DCOM58Test::testIssue

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Test.php, line 12

Class

DCOM58Test
@group DCOM58

Namespace

Doctrine\Tests\Common\Annotations\Ticket

Code

public function testIssue() {
  $reader = new \Doctrine\Common\Annotations\AnnotationReader();
  $result = $reader
    ->getClassAnnotations(new \ReflectionClass(__NAMESPACE__ . "\\MappedClass"));
  foreach ($result as $annot) {
    $classAnnotations[get_class($annot)] = $annot;
  }
  $this
    ->assertTrue(!isset($classAnnotations['']), 'Class "xxx" is not a valid entity or mapped super class.');
}