public function PhpParserTest::testDifferentNamespacesPerFileWithClassAsLast

File

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

Class

PhpParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testDifferentNamespacesPerFileWithClassAsLast() {
  $parser = new PhpParser();
  $class = new ReflectionClass(__NAMESPACE__ . '\\Fixtures\\DifferentNamespacesPerFileWithClassAsLast');
  $this
    ->assertEquals(array(
    'template' => __NAMESPACE__ . '\\Fixtures\\Annotation\\Template',
  ), $parser
    ->parseClass($class));
}