rmdirr.lib.test_standalone.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * A standalone test for testing the function rmdirr()
  4. * @author Ivan Tcholakov, September 2009.
  5. * For licensing terms, see /dokeos_license.txt
  6. */
  7. //ini_set('memory_limit','128M');
  8. $_current_dir = dirname(__FILE__).'/';
  9. $_sys_code_path = $_current_dir.'../main/';
  10. $_sys_include_path = $_sys_code_path.'inc/';
  11. $_sys_library_path = $_sys_code_path.'inc/lib/';
  12. $_test_sys_code_path = $_current_dir.'main/';
  13. $_test_sys_include_path = $_test_sys_code_path.'inc/';
  14. $_test_sys_library_path = $_test_sys_code_path.'inc/lib/';
  15. require_once($_current_dir.'simpletest/unit_tester.php');
  16. require_once($_sys_include_path.'global.inc.php');
  17. //header('Content-Type: text/html; charset=' . $charset);
  18. header('Content-Type: text/html; charset=' . 'UTF-8');
  19. require_once($_current_dir.'simpletest/web_tester.php');
  20. require_once($_current_dir.'simpletest/mock_objects.php');
  21. require_once($_current_dir.'simpletest/autorun.php');
  22. $_SESSION['_user']['user_id'] = 1;
  23. class RmDirRTests extends TestSuite {
  24. function RmDirRTests() {
  25. $this->TestSuite('Testing the function rmdirr()');
  26. global $_test_sys_library_path;
  27. $this->addTestFile($_test_sys_library_path.'rmdirr.lib.test.php');
  28. }
  29. }
  30. $test = & new RmDirRTests();
  31. //$test-> run( new HtmlReporter());
  32. ?>