From 5e73f6e20c55b11cc9a1ccf09ad8f870ed4c8aef Mon Sep 17 00:00:00 2001 From: rurban Date: Fri, 21 Jan 2005 11:22:39 +0000 Subject: [PATCH] some convenience git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4399 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- tests/unit/test.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test.php b/tests/unit/test.php index 887356d48..76ec7810a 100644 --- a/tests/unit/test.php +++ b/tests/unit/test.php @@ -63,8 +63,9 @@ $rootdir = $cur_dir . '/../../'; $ini_sep = substr(PHP_OS,0,3) == 'WIN' ? ';' : ':'; $include_path = ini_get('include_path') . $ini_sep . $rootdir . $ini_sep . $rootdir . "lib/pear"; ini_set('include_path', $include_path); +define('DEFAULT_LANGUAGE','en'); // don't use browser detection -if ($HTTP_SERVER_VARS["SERVER_NAME"] == 'phpwiki.sourceforge.net') { +if (!empty($HTTP_SERVER_VARS) and $HTTP_SERVER_VARS["SERVER_NAME"] == 'phpwiki.sourceforge.net') { ini_set('include_path', ini_get('include_path') . ":/usr/share/pear"); //define('ENABLE_PAGEPERM',false); // costs nothing define('USECACHE',false); // really? @@ -78,6 +79,7 @@ $database_backends = array( 'SQL', 'ADODB', ); +//TODO: convert cvs test //TODO: read some database values from config.ini, just use the "test_" prefix // "flatfile" testing occurs in "tests/unit/.testbox/" // "dba" needs the DATABASE_DBA_HANDLER, also in the .textbox directory @@ -373,6 +375,7 @@ elseif (!ini_get("register_argc_argv")) // purge the testbox $debug_level = 1; //was 9, _DEBUG_VERBOSE | _DEBUG_TRACE +if (defined('E_STRICT')) $debug_level = 5; // add PARSER flag on php5 $user_level = 1; // BOGO (conflicts with RateIt) // use argv (from cli) or tests (from browser) params to run only certain tests // avoid pear: Console::Getopt -- 2.45.0