You are here

public function ClassLoaderTest::testGetClassLoader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/ClassLoaderTest.php \Doctrine\Tests\Common\ClassLoaderTest::testGetClassLoader()

File

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