public function ClassLoaderTest::testGetClassLoader

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/ClassLoaderTest.php, line 37

Class

ClassLoaderTest

Namespace

Doctrine\Tests\Common

Code

public function testGetClassLoader() {
  $cl = new ClassLoader('ClassLoaderTest', __DIR__);
  $cl
    ->register();
  $this
    ->assertTrue(ClassLoader::getClassLoader('ClassLoaderTest\\ClassD') instanceof \Doctrine\Common\ClassLoader);
  $this
    ->assertNull(ClassLoader::getClassLoader('This\\Class\\Does\\Not\\Exist'));
  $cl
    ->unregister();
}