public function ClassLoaderTest::testLoadClass 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::testLoadClass()
@dataProvider getLoadClassTests
File
- vendor/
symfony/ class-loader/ Tests/ ClassLoaderTest.php, line 43
Class
Namespace
Symfony\Component\ClassLoader\TestsCode
public function testLoadClass($className, $testClassName, $message) {
$loader = new ClassLoader();
$loader
->addPrefix('Namespaced2\\', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$loader
->addPrefix('Pearlike2_', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$loader
->loadClass($testClassName);
$this
->assertTrue(class_exists($className), $message);
}