testconfig.php 273 B

12345678910111213
  1. <?php
  2. define("TEST_ROOT", dirname(__FILE__) . '/');
  3. function testAutoloader($class)
  4. {
  5. if(file_exists(TEST_ROOT . $class . '.class.php'))
  6. {
  7. require_once TEST_ROOT . $class . '.class.php';
  8. }
  9. }
  10. spl_autoload_register("testAutoloader");
  11. require_once "../config.inc.php";