public function testClassLoaderCheckFileExists() { $classLoader = new \Doctrine\Common\ClassLoader(); $classLoader->setBasePath('ClassLoaderTest', __DIR__); $classLoader->setCheckFileExists(true); // This would return a fatal error without check file exists true $this->assertEquals($classLoader->loadClass('SomeInvalidClass'), false); }