public function LegacyUniversalClassLoaderTest::testLoadClass in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/Tests/LegacyUniversalClassLoaderTest.php \Symfony\Component\ClassLoader\Tests\LegacyUniversalClassLoaderTest::testLoadClass()
@dataProvider getLoadClassTests
File
- vendor/
symfony/ class-loader/ Tests/ LegacyUniversalClassLoaderTest.php, line 24
Class
- LegacyUniversalClassLoaderTest
- @group legacy
Namespace
Symfony\Component\ClassLoader\TestsCode
public function testLoadClass($className, $testClassName, $message) {
$loader = new UniversalClassLoader();
$loader
->registerNamespace('Namespaced', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$loader
->registerPrefix('Pearlike_', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
$this
->assertTrue($loader
->loadClass($testClassName));
$this
->assertTrue(class_exists($className), $message);
}