You are here

public function LegacyApcUniversalClassLoaderTest::testLoadClassPrefixCollision in Zircon Profile 8.0

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

@dataProvider getLoadClassPrefixCollisionTests

File

vendor/symfony/class-loader/Tests/LegacyApcUniversalClassLoaderTest.php, line 147

Class

LegacyApcUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testLoadClassPrefixCollision($prefixes, $className, $message) {
  $loader = new ApcUniversalClassLoader('test.prefix.collision.');
  $loader
    ->registerPrefixes($prefixes);
  $loader
    ->loadClass($className);
  $this
    ->assertTrue(class_exists($className), $message);
}