You are here

public function LegacyApcUniversalClassLoaderTest::testLoadClass in Zircon Profile 8

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

@dataProvider getLoadClassTests

File

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

Class

LegacyApcUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testLoadClass($className, $testClassName, $message) {
  $loader = new ApcUniversalClassLoader('test.prefix.');
  $loader
    ->registerNamespace('Apc\\Namespaced', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $loader
    ->registerPrefix('Apc_Pearlike_', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $loader
    ->loadClass($testClassName);
  $this
    ->assertTrue(class_exists($className), $message);
}