public function AbstractReaderTest::getReflectionClass

File

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

Class

AbstractReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function getReflectionClass() {
  $className = 'Doctrine\\Tests\\Common\\Annotations\\DummyClass';
  $testsRoot = substr(__DIR__, 0, -strlen(__NAMESPACE__) - 1);
  $paths = array(
    'Doctrine\\Tests' => array(
      $testsRoot,
    ),
  );
  $staticReflectionParser = new StaticReflectionParser($className, new Psr0FindFile($paths));
  return array(
    'native' => array(
      new ReflectionClass($className),
    ),
    'static' => array(
      $staticReflectionParser
        ->getReflectionClass(),
    ),
  );
}