You are here

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

File

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

Class

LegacyApcUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testConstructor() {
  $loader = new ApcUniversalClassLoader('test.prefix.');
  $loader
    ->registerNamespace('Apc\\Namespaced', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $this
    ->assertEquals($loader
    ->findFile('\\Apc\\Namespaced\\FooBar'), apc_fetch('test.prefix.\\Apc\\Namespaced\\FooBar'), '__construct() takes a prefix as its first argument');
}