*/ require_once 'init.php'; require_once STR_PATH . '/tests/classes/TestRunner.php'; echo "\n"; if (defined('TEST_ENVIRONMENT_NO_CONFIG')) { echo "

First Run Detected

The default Simple Test Runner configuration file test.conf.ini has been copied to the directory:

" . stripslashes(STR_TMP_DIR) . "

Please edit the new configuration file located at:

" . stripslashes(STR_TMP_DIR) . "/test.conf.ini

to reflect your database server details.

If you would like to customise the default configuration settings when first running Simple Test Runner
please edit the distribution configuration file located at " . STR_PATH . "/test.conf.ini-dist

\n"; exit(); } $start = microtime(); // Store the type of test being run globally, to save passing // about as a parameter all the time $GLOBALS['_STR']['test_type'] = @$_GET['type']; $level = @$_GET['level']; if ($level == 'all') { STR_TestRunner::runAll(); } elseif ($level == 'layer') { $layer = $_GET['layer']; STR_TestRunner::runLayer($layer); } elseif ($level == 'folder') { $layer = $_GET['layer']; $folder = $_GET['folder']; STR_TestRunner::runFolder($layer, $folder); } elseif ($level == 'file') { $layer = $_GET['layer']; $folder = $_GET['folder']; $file = $_GET['file']; STR_TestRunner::runFile($layer, $folder, $file); } // Display execution time list ($endUsec, $endSec) = explode(" ", microtime()); $endTime = ((float) $endUsec + (float) $endSec); list ($startUsec, $startSec) = explode(" ", $start); $startTime = ((float) $startUsec + (float) $startSec); echo '

Test Suite Execution Time ~ '; echo substr(($endTime - $startTime), 0, 6); echo ' seconds.
'; ?>