bootstrap.php 475 B

1234567891011121314151617181920
  1. <?php
  2. if (!defined('PHPUNIT_RUN')) {
  3. define('PHPUNIT_RUN', 1);
  4. }
  5. require_once __DIR__.'/../../../lib/base.php';
  6. // Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
  7. \OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
  8. // Fix for "Autoload path not allowed: .../testnextcloudapp/tests/testcase.php"
  9. \OC_App::loadApp('testnextcloudapp');
  10. if(!class_exists('PHPUnit_Framework_TestCase')) {
  11. require_once('PHPUnit/Autoload.php');
  12. }
  13. OC_Hook::clear();