function setUp()
 {
     // drupal_load('module', 'xautoload') would register namespaces for all
     // enabled modules, which is not intended for this unit test.
     // Instead, we just include xautoload.early.inc.
     require_once dirname(__FILE__) . '/../../../../xautoload.early.inc';
     // Make sure we use the regular loader, not the APC one.
     // Also make sure to prepend this one. Otherwise, the core class loader will
     // try to load xautoload-related stuff, e.g. xautoload_Mock_* stuff, and
     // will fail due to the database.
     foreach (spl_autoload_functions() as $callback) {
         if (is_array($callback) && ($loader = $callback[0]) && $loader instanceof ClassLoaderInterface) {
             $loader->unregister();
         }
     }
     xautoload()->finder->register(TRUE);
     // Do the regular setUp().
     parent::setUp();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $module_dir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
     require_once $module_dir . '/authcache_enum.comb.inc';
 }
 /**
  * {@inheritdoc}
  */
 public function tearDown()
 {
     drupal_uninstall_schema('locale');
     drupal_uninstall_schema('system');
     $this->restoreDrupalEnvironment();
     $this->restoreClientManager();
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     FormBuilderFormBase::purge(0);
     FormBuilderLoader::instance()->fromCache(NULL, NULL, NULL, TRUE);
 }