You are here

public function LegacyUniversalClassLoaderTest::testLoadClassPrefixCollision in Zircon Profile 8.0

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

@dataProvider getLoadClassPrefixCollisionTests

File

vendor/symfony/class-loader/Tests/LegacyUniversalClassLoaderTest.php, line 177

Class

LegacyUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testLoadClassPrefixCollision($prefixes, $className, $message) {
  $loader = new UniversalClassLoader();
  $loader
    ->registerPrefixes($prefixes);
  $this
    ->assertTrue($loader
    ->loadClass($className));
  $this
    ->assertTrue(class_exists($className), $message);
}