internationalization.lib.test_standalone.php 1.3 KB

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