public function ClassLoaderTest::testAddPrefix in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/Tests/ClassLoaderTest.php \Symfony\Component\ClassLoader\Tests\ClassLoaderTest::testAddPrefix()
File
- vendor/
symfony/ class-loader/ Tests/ ClassLoaderTest.php, line 79
Class
Namespace
Symfony\Component\ClassLoader\TestsCode
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']);
}