public function PhpParserTest::testClassWithClosure

@group DCOM-97 @group regression

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/PhpParserTest.php, line 184

Class

PhpParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testClassWithClosure() {
  $parser = new PhpParser();
  $class = new ReflectionClass(__NAMESPACE__ . '\\Fixtures\\ClassWithClosure');
  $this
    ->assertEquals(array(
    'annotationtargetall' => __NAMESPACE__ . '\\Fixtures\\AnnotationTargetAll',
    'annotationtargetannotation' => __NAMESPACE__ . '\\Fixtures\\AnnotationTargetAnnotation',
  ), $parser
    ->parseClass($class));
}