Jakobo / snaptest

PHP5 Unit Testing Framework

This URL has Read+Write access

snaptest / constants.php
3349c922 » Jakobo 2008-04-04 folder restructuring + cons... 1 <?php
2
3 if (!defined('SNAPTEST_ROOT')) {
4 define('SNAPTEST_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR);
5 define('SNAPTEST_CORE', SNAPTEST_ROOT . 'core' . DIRECTORY_SEPARATOR);
ac608eed » Jakobo 2008-04-10 moved stuff to a util direc... 6 define('SNAPTEST_UTIL', SNAPTEST_CORE . 'util' . DIRECTORY_SEPARATOR);
1c011012 » Jakobo 2008-05-26 cleaned up a bug with requi... 7 define('SNAPTEST_WEBFILES', SNAPTEST_UTIL . 'webfiles' . DIRECTORY_SEPARATOR);
ae222147 » Jakobo 2008-04-06 parallel processing added t... 8 define('SNAPTEST_LOADERS', SNAPTEST_CORE . 'loader' . DIRECTORY_SEPARATOR . 'loaders' . DIRECTORY_SEPARATOR);
9 define('SNAPTEST_REPORTERS', SNAPTEST_CORE . 'reporter' . DIRECTORY_SEPARATOR . 'reporters' . DIRECTORY_SEPARATOR);
10
11 if (!isset($argv) || !is_array($argv)) {
feb7b71e » Jakobo 2008-05-01 standardized true/false/nul... 12 define('SNAP_CGI_MODE', TRUE);
ae222147 » Jakobo 2008-04-06 parallel processing added t... 13 }
14 else {
feb7b71e » Jakobo 2008-05-01 standardized true/false/nul... 15 define ('SNAP_CGI_MODE', FALSE);
ae222147 » Jakobo 2008-04-06 parallel processing added t... 16 }
42e741e9 » Jakobo 2008-04-05 moved more things to consta... 17
18 define('SNAPTEST_TOKEN_START', '===START===');
19 define('SNAPTEST_TOKEN_END', '===END===');
20 define('SNAP_MANGLE_STRING', '__D_O_T__');
ae222147 » Jakobo 2008-04-06 parallel processing added t... 21 define('SNAP_STREAM_ENDING_TOKEN', '===SNAPSTREAM_END===');
22
23 define('SNAP_MAX_CHILDREN', 10);
3349c922 » Jakobo 2008-04-04 folder restructuring + cons... 24
25 // include the required libraries
26 include_once SNAPTEST_CORE . 'functions.php';
ac608eed » Jakobo 2008-04-10 moved stuff to a util direc... 27
28 if (defined('SNAPTEST_CLI_INTERFACE')) {
29 include_once SNAPTEST_UTIL . 'analyzer' . DIRECTORY_SEPARATOR . 'analyzer.php';
30 include_once SNAPTEST_UTIL . 'request' . DIRECTORY_SEPARATOR . 'request.php';
31 include_once SNAPTEST_UTIL . 'dispatcher' . DIRECTORY_SEPARATOR . 'dispatcher.php';
32 include_once SNAPTEST_UTIL . 'testaggregator' . DIRECTORY_SEPARATOR . 'testaggregator.php';
33 }
34
3349c922 » Jakobo 2008-04-04 folder restructuring + cons... 35 include_once SNAPTEST_CORE . 'snap' . DIRECTORY_SEPARATOR . 'snap.php';
ae222147 » Jakobo 2008-04-06 parallel processing added t... 36
3349c922 » Jakobo 2008-04-04 folder restructuring + cons... 37 include_once SNAPTEST_CORE . 'exceptions' . DIRECTORY_SEPARATOR . 'exceptions.php';
38 include_once SNAPTEST_CORE . 'mock' . DIRECTORY_SEPARATOR . 'mock.php';
39 include_once SNAPTEST_CORE . 'expectations' . DIRECTORY_SEPARATOR . 'expectations.php';
40 include_once SNAPTEST_CORE . 'reporter' . DIRECTORY_SEPARATOR . 'reporter.php';
41 include_once SNAPTEST_CORE . 'loader' . DIRECTORY_SEPARATOR . 'loader.php';
42 include_once SNAPTEST_CORE . 'testcase' . DIRECTORY_SEPARATOR . 'testcase.php';
43 include_once SNAPTEST_CORE . 'file' . DIRECTORY_SEPARATOR . 'file.php';
44
45 }