bootstrap.php 467 B

123456789101112131415161718192021222324
  1. <?php
  2. define('PHPUNIT_RUN', 1);
  3. $configDir = getenv('CONFIG_DIR');
  4. if ($configDir) {
  5. define('PHPUNIT_CONFIG_DIR', $configDir);
  6. }
  7. require_once __DIR__ . '/../lib/base.php';
  8. // load minimum set of apps
  9. OC_App::loadApps(array('authentication'));
  10. OC_App::loadApps(array('filesystem', 'logging'));
  11. if (!class_exists('PHPUnit_Framework_TestCase')) {
  12. require_once('PHPUnit/Autoload.php');
  13. }
  14. OC_Hook::clear();
  15. OC_Log::$enabled = false;
  16. OC_FileProxy::clearProxies();