You are here

public function ClassLoaderTest::testLoadClassNamespaceCollision 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::testLoadClassNamespaceCollision()

@dataProvider getLoadClassNamespaceCollisionTests

File

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

Class

ClassLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testLoadClassNamespaceCollision($namespaces, $className, $message) {
  $loader = new ClassLoader();
  $loader
    ->addPrefixes($namespaces);
  $loader
    ->loadClass($className);
  $this
    ->assertTrue(class_exists($className), $message);
}