public function ClassLoaderTest::testGetClassLoader in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ ClassLoaderTest.php, line 37
Class
Namespace
Doctrine\Tests\CommonCode
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();
}