Location: PHPKode > projects > Rincewind > rincewind-2.6.4/tests/snaptest/constants.php
<?php

if (!defined('SNAPTEST_ROOT')) {
    define('SNAPTEST_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR);
    define('SNAPTEST_CORE', SNAPTEST_ROOT . 'core' . DIRECTORY_SEPARATOR);
    define('SNAPTEST_UTIL', SNAPTEST_CORE . 'util' . DIRECTORY_SEPARATOR);
    define('SNAPTEST_WEBFILES', SNAPTEST_UTIL . 'webfiles' . DIRECTORY_SEPARATOR);
    define('SNAPTEST_LOADERS', SNAPTEST_CORE . 'loader' . DIRECTORY_SEPARATOR . 'loaders' . DIRECTORY_SEPARATOR);
    define('SNAPTEST_REPORTERS', SNAPTEST_CORE . 'reporter' . DIRECTORY_SEPARATOR . 'reporters' . DIRECTORY_SEPARATOR);
    define('SNAPTEST_LOGFILE', SNAPTEST_ROOT . 'snaptest.log');
    
    if (!isset($argv) || !is_array($argv)) {
        define('SNAP_CGI_MODE', TRUE);
    }
    else {
        define ('SNAP_CGI_MODE', FALSE);
    }
    
    define('SNAPTEST_TOKEN_START', '===START===');
    define('SNAPTEST_TOKEN_END', '===END===');
    define('SNAPTEST_FATAL_ALLOWED', '===FATAL_ALLOWED===');
    define('SNAP_MANGLE_STRING', '__D_O_T__');
    define('SNAP_STREAM_ENDING_TOKEN', '===SNAPSTREAM_END===');
    
    define('SNAP_MAX_CHILDREN', 10);

    // include the required libraries
    include_once SNAPTEST_CORE . 'functions.php';
    
    if (defined('SNAPTEST_CLI_INTERFACE')) {
        date_default_timezone_set('Europe/London');
      
        include_once SNAPTEST_UTIL . 'analyzer' . DIRECTORY_SEPARATOR . 'analyzer.php';
        include_once SNAPTEST_UTIL . 'request' . DIRECTORY_SEPARATOR . 'request.php';
        include_once SNAPTEST_UTIL . 'dispatcher' . DIRECTORY_SEPARATOR . 'dispatcher.php';
        include_once SNAPTEST_UTIL . 'testaggregator' . DIRECTORY_SEPARATOR . 'testaggregator.php';
    }

    include_once SNAPTEST_CORE . 'snap' . DIRECTORY_SEPARATOR . 'snap.php';
    
    include_once SNAPTEST_CORE . 'exceptions' . DIRECTORY_SEPARATOR . 'exceptions.php';
    include_once SNAPTEST_CORE . 'mock' . DIRECTORY_SEPARATOR . 'mock.php';
    include_once SNAPTEST_CORE . 'expectations' . DIRECTORY_SEPARATOR . 'expectations.php';
    include_once SNAPTEST_CORE . 'reporter' . DIRECTORY_SEPARATOR . 'reporter.php';
    include_once SNAPTEST_CORE . 'loader' . DIRECTORY_SEPARATOR . 'loader.php';
    include_once SNAPTEST_CORE . 'testcase' . DIRECTORY_SEPARATOR . 'testcase.php';
    include_once SNAPTEST_CORE . 'file' . DIRECTORY_SEPARATOR . 'file.php';

}
Return current item: Rincewind