addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true); // load all apps foreach (new \DirectoryIterator(__DIR__ . '/../apps/') as $file) { if ($file->isDot()) { continue; } \OC_App::loadApp($file->getFilename()); } OC_Hook::clear(); set_include_path( get_include_path() . PATH_SEPARATOR . '/usr/share/php' . PATH_SEPARATOR . __DIR__ . '/..' );