You are here

public function ClassLoaderTest::testMultipleAutoloadRequestsWillProduceSameResult in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/ClassLoaderTest.php, line 123

Class

ClassLoaderTest

Namespace

Doctrine\Tests\Common

Code

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'));
}