public function LegacyApcUniversalClassLoaderTest::testConstructor in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\TestsCode
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');
}