public function testClassExists() {
$this
->assertFalse(ClassLoader::classExists('ClassLoaderTest\\ClassD'));
$badLoader = function ($className) {
require __DIR__ . '/ClassLoaderTest/ClassD.php';
return true;
};
spl_autoload_register($badLoader);
$this
->assertTrue(ClassLoader::classExists('ClassLoaderTest\\ClassD'));
spl_autoload_unregister($badLoader);
}