public function ClassLoaderTest::testGetPrefixes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/class-loader/Tests/ClassLoaderTest.php \Symfony\Component\ClassLoader\Tests\ClassLoaderTest::testGetPrefixes()
File
- vendor/
symfony/ class-loader/ Tests/ ClassLoaderTest.php, line 18
Class
Namespace
Symfony\Component\ClassLoader\TestsCode
public function testGetPrefixes() {
$loader = new ClassLoader();
$loader
->addPrefix('Foo', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$loader
->addPrefix('Bar', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$loader
->addPrefix('Bas', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$prefixes = $loader
->getPrefixes();
$this
->assertArrayHasKey('Foo', $prefixes);
$this
->assertArrayNotHasKey('Foo1', $prefixes);
$this
->assertArrayHasKey('Bar', $prefixes);
$this
->assertArrayHasKey('Bas', $prefixes);
}