You are here

public function ClassLoaderTest::testAddPrefix in Zircon Profile 8

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

File

vendor/symfony/class-loader/Tests/ClassLoaderTest.php, line 79

Class

ClassLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testAddPrefix() {
  $loader = new ClassLoader();
  $loader
    ->addPrefix('Foo', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $loader
    ->addPrefix('Foo', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $prefixes = $loader
    ->getPrefixes();
  $this
    ->assertArrayHasKey('Foo', $prefixes);
  $this
    ->assertCount(2, $prefixes['Foo']);
}