bootstrap.php 449 B

12345678910111213141516171819
  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: .../raw/tests/testcase.php"
  9. \OC_App::loadApp('raw');
  10. if(!class_exists('PHPUnit_Framework_TestCase')) {
  11. require_once('PHPUnit/Autoload.php');
  12. }
  13. OC_Hook::clear();