public function ClassLoaderTest::testMultipleAutoloadRequestsWillProduceSameResult in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ ClassLoaderTest.php, line 123
Class
Namespace
Doctrine\Tests\CommonCode
public function testMultipleAutoloadRequestsWillProduceSameResult() {
$classLoader = new ClassLoader();
$classLoader
->setIncludePath(__DIR__);
$classLoader
->setFileExtension('.class.php');
$classLoader
->setNamespaceSeparator('_');
$this
->assertTrue($classLoader
->loadClass('ClassLoaderTest_ClassA'));
$this
->assertTrue($classLoader
->loadClass('ClassLoaderTest_ClassA'));
}