public function PhpParserTest::testEqualNamespacesPerFileWithClassAsFirst

File

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

Class

PhpParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

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