public function PhpParserTest::testParseClassWithMultipleClassesInFile

File

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

Class

PhpParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testParseClassWithMultipleClassesInFile() {
  $class = new ReflectionClass(__NAMESPACE__ . '\\Fixtures\\MultipleClassesInFile');
  $parser = new PhpParser();
  $this
    ->assertEquals(array(
    'route' => __NAMESPACE__ . '\\Fixtures\\Annotation\\Route',
    'secure' => __NAMESPACE__ . '\\Fixtures\\Annotation\\Secure',
  ), $parser
    ->parseClass($class));
}