public function ClassLoader::findFile in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::findFile()
- 8.0 vendor/symfony/class-loader/ClassLoader.php \Symfony\Component\ClassLoader\ClassLoader::findFile()
- 8.0 vendor/symfony/debug/Tests/DebugClassLoaderTest.php \Symfony\Component\Debug\Tests\ClassLoader::findFile()
Same name and namespace in other branches
- 8 vendor/symfony/debug/Tests/DebugClassLoaderTest.php \Symfony\Component\Debug\Tests\ClassLoader::findFile()
File
- vendor/
symfony/ debug/ Tests/ DebugClassLoaderTest.php, line 266
Class
Namespace
Symfony\Component\Debug\TestsCode
public function findFile($class) {
$fixtureDir = __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures' . DIRECTORY_SEPARATOR;
if (__NAMESPACE__ . '\\TestingUnsilencing' === $class) {
eval('-- parse error --');
}
elseif (__NAMESPACE__ . '\\TestingStacking' === $class) {
eval('namespace ' . __NAMESPACE__ . '; class TestingStacking { function foo() {} }');
}
elseif (__NAMESPACE__ . '\\TestingCaseMismatch' === $class) {
eval('namespace ' . __NAMESPACE__ . '; class TestingCaseMisMatch {}');
}
elseif (__NAMESPACE__ . '\\Fixtures\\CaseMismatch' === $class) {
return $fixtureDir . 'CaseMismatch.php';
}
elseif (__NAMESPACE__ . '\\Fixtures\\Psr4CaseMismatch' === $class) {
return $fixtureDir . 'psr4' . DIRECTORY_SEPARATOR . 'Psr4CaseMismatch.php';
}
elseif (__NAMESPACE__ . '\\Fixtures\\NotPSR0' === $class) {
return $fixtureDir . 'reallyNotPsr0.php';
}
elseif (__NAMESPACE__ . '\\Fixtures\\NotPSR0bis' === $class) {
return $fixtureDir . 'notPsr0Bis.php';
}
elseif (__NAMESPACE__ . '\\Fixtures\\DeprecatedInterface' === $class) {
return $fixtureDir . 'DeprecatedInterface.php';
}
elseif ('Symfony\\Bridge\\Debug\\Tests\\Fixtures\\ExtendsDeprecatedParent' === $class) {
eval('namespace Symfony\\Bridge\\Debug\\Tests\\Fixtures; class ExtendsDeprecatedParent extends \\' . __NAMESPACE__ . '\\Fixtures\\DeprecatedClass {}');
}
elseif ('Test\\' . __NAMESPACE__ . '\\DeprecatedParentClass' === $class) {
eval('namespace Test\\' . __NAMESPACE__ . '; class DeprecatedParentClass extends \\' . __NAMESPACE__ . '\\Fixtures\\DeprecatedClass {}');
}
elseif ('Test\\' . __NAMESPACE__ . '\\DeprecatedInterfaceClass' === $class) {
eval('namespace Test\\' . __NAMESPACE__ . '; class DeprecatedInterfaceClass implements \\' . __NAMESPACE__ . '\\Fixtures\\DeprecatedInterface {}');
}
elseif ('Test\\' . __NAMESPACE__ . '\\Float' === $class) {
eval('namespace Test\\' . __NAMESPACE__ . '; class Float {}');
}
}