You are here

public function ClassMapGeneratorTest::testCreateMapFinderSupport in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php \Symfony\Component\ClassLoader\Tests\ClassMapGeneratorTest::testCreateMapFinderSupport()

File

vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php, line 127

Class

ClassMapGeneratorTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testCreateMapFinderSupport() {
  $finder = new \Symfony\Component\Finder\Finder();
  $finder
    ->files()
    ->in(__DIR__ . '/Fixtures/beta/NamespaceCollision');
  $this
    ->assertEqualsNormalized(array(
    'NamespaceCollision\\A\\B\\Bar' => realpath(__DIR__) . '/Fixtures/beta/NamespaceCollision/A/B/Bar.php',
    'NamespaceCollision\\A\\B\\Foo' => realpath(__DIR__) . '/Fixtures/beta/NamespaceCollision/A/B/Foo.php',
    'NamespaceCollision\\C\\B\\Bar' => realpath(__DIR__) . '/Fixtures/beta/NamespaceCollision/C/B/Bar.php',
    'NamespaceCollision\\C\\B\\Foo' => realpath(__DIR__) . '/Fixtures/beta/NamespaceCollision/C/B/Foo.php',
  ), ClassMapGenerator::createMap($finder));
}