You are here

public function LegacyUniversalClassLoaderTest::getLoadClassPrefixCollisionTests in Zircon Profile 8

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

File

vendor/symfony/class-loader/Tests/LegacyUniversalClassLoaderTest.php, line 186

Class

LegacyUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function getLoadClassPrefixCollisionTests() {
  return array(
    array(
      array(
        'PrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/alpha',
        'PrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/beta',
      ),
      'PrefixCollision_A_Foo',
      '->loadClass() loads PrefixCollision_A_Foo from alpha.',
    ),
    array(
      array(
        'PrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/beta',
        'PrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/alpha',
      ),
      'PrefixCollision_A_Bar',
      '->loadClass() loads PrefixCollision_A_Bar from alpha.',
    ),
    array(
      array(
        'PrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/alpha',
        'PrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/beta',
      ),
      'PrefixCollision_A_B_Foo',
      '->loadClass() loads PrefixCollision_A_B_Foo from beta.',
    ),
    array(
      array(
        'PrefixCollision_A_B_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/beta',
        'PrefixCollision_A_' => __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures/alpha',
      ),
      'PrefixCollision_A_B_Bar',
      '->loadClass() loads PrefixCollision_A_B_Bar from beta.',
    ),
  );
}