You are here

public function ClassLoaderTest::testGetClassLoader in Plug 7

File

lib/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();
}