You are here

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

File

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

Class

LegacyApcUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function getLoadClassPrefixCollisionTests() {
  return array(
    array(
      array(
        'ApcPrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/alpha/Apc',
        'ApcPrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/beta/Apc',
      ),
      'ApcPrefixCollision_A_Foo',
      '->loadClass() loads ApcPrefixCollision_A_Foo from alpha.',
    ),
    array(
      array(
        'ApcPrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/beta/Apc',
        'ApcPrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/alpha/Apc',
      ),
      'ApcPrefixCollision_A_Bar',
      '->loadClass() loads ApcPrefixCollision_A_Bar from alpha.',
    ),
    array(
      array(
        'ApcPrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/alpha/Apc',
        'ApcPrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/beta/Apc',
      ),
      'ApcPrefixCollision_A_B_Foo',
      '->loadClass() loads ApcPrefixCollision_A_B_Foo from beta.',
    ),
    array(
      array(
        'ApcPrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/beta/Apc',
        'ApcPrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/Apc/alpha/Apc',
      ),
      'ApcPrefixCollision_A_B_Bar',
      '->loadClass() loads ApcPrefixCollision_A_B_Bar from beta.',
    ),
  );
}