function AMP_init_local_path()
{
    // If we don't yet have a local path, find one.
    if (!defined('AMP_LOCAL_PATH')) {
        define('AMP_LOCAL_PATH', find_local_path());
    }
    if (AMP_LOCAL_PATH) {
        $incpath = ini_get('include_path');
        // Search local paths for includes.
        ini_set('include_path', AMP_LOCAL_PATH . DIRECTORY_SEPARATOR . "custom" . PATH_SEPARATOR . AMP_LOCAL_PATH . DIRECTORY_SEPARATOR . "lib" . PATH_SEPARATOR . ini_get('include_path'));
    }
}
Beispiel #2
0
<?php

if (!defined('SIMPLE_TEST')) {
    define('SIMPLE_TEST', 'simpletest/');
}
require_once SIMPLE_TEST . 'unit_tester.php';
require_once SIMPLE_TEST . 'reporter.php';
require_once SIMPLE_TEST . 'web_tester.php';
require_once 'utility.system.functions.inc.php';
define('AMP_SYSTEM_CACHE_PATH', find_local_path() . DIRECTORY_SEPARATOR . 'cache');
require_once "AMP/BaseDB.php";
require_once SIMPLE_TEST . 'mock_objects.php';
require_once 'adodb/adodb.inc.php';
require_once 'adodb/drivers/adodb-mysql.inc.php';
Mock::generate('ADODB_mysql');
Mock::generate('ADORecordSet_mysql');
require_once 'unit_tests/UnitRunner.inc.php';