You are here

public function LegacyApcUniversalClassLoaderTest::getLoadClassFromFallbackTests 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::getLoadClassFromFallbackTests()

File

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

Class

LegacyApcUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function getLoadClassFromFallbackTests() {
  return array(
    array(
      '\\Apc\\Namespaced\\Baz',
      'Apc\\Namespaced\\Baz',
      '->loadClass() loads Apc\\Namespaced\\Baz class',
    ),
    array(
      'Apc_Pearlike_Baz',
      'Apc_Pearlike_Baz',
      '->loadClass() loads Apc_Pearlike_Baz class',
    ),
    array(
      '\\Apc\\Namespaced\\FooBar',
      'Apc\\Namespaced\\FooBar',
      '->loadClass() loads Apc\\Namespaced\\Baz class from fallback dir',
    ),
    array(
      'Apc_Pearlike_FooBar',
      'Apc_Pearlike_FooBar',
      '->loadClass() loads Apc_Pearlike_Baz class from fallback dir',
    ),
  );
}