rmdirr.lib.test_standalone.php 1.3 KB

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