public function LegacyUniversalClassLoaderTest::testUseIncludePath in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/Tests/LegacyUniversalClassLoaderTest.php \Symfony\Component\ClassLoader\Tests\LegacyUniversalClassLoaderTest::testUseIncludePath()
File
- vendor/
symfony/ class-loader/ Tests/ LegacyUniversalClassLoaderTest.php, line 41
Class
- LegacyUniversalClassLoaderTest
- @group legacy
Namespace
Symfony\Component\ClassLoader\TestsCode
public function testUseIncludePath() {
$loader = new UniversalClassLoader();
$this
->assertFalse($loader
->getUseIncludePath());
$this
->assertNull($loader
->findFile('Foo'));
$includePath = get_include_path();
$loader
->useIncludePath(true);
$this
->assertTrue($loader
->getUseIncludePath());
set_include_path(__DIR__ . '/Fixtures/includepath' . PATH_SEPARATOR . $includePath);
$this
->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . 'Fixtures' . DIRECTORY_SEPARATOR . 'includepath' . DIRECTORY_SEPARATOR . 'Foo.php', $loader
->findFile('Foo'));
set_include_path($includePath);
}