From c154c9bd0aede9251c8c7047a6560c35ff5de74e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Aug 2011 21:21:07 +0000 Subject: [PATCH] Fix: Fix PHPUnit test --- test/phpunit/CoreTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/phpunit/CoreTest.php b/test/phpunit/CoreTest.php index 9c171463465..8055c1967a0 100755 --- a/test/phpunit/CoreTest.php +++ b/test/phpunit/CoreTest.php @@ -20,14 +20,13 @@ * \file test/phpunit/SecurityTest.php * \ingroup test * \brief PHPUnit test - * \version $Id$ + * \version $Id: CoreTest.php,v 1.4 2011/08/20 21:21:07 eldy Exp $ * \remarks To run this script as CLI: phpunit filename.php */ global $conf,$user,$langs,$db; //define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver require_once 'PHPUnit/Framework.php'; -require_once dirname(__FILE__).'/../../htdocs/lib/functions.lib.php'; if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); @@ -176,6 +175,7 @@ class CoreTest extends PHPUnit_Framework_TestCase //$dolibarr_main_url_root_alt='http://localhost/dolibarralias/custom2'; include dirname(__FILE__).'/../../htdocs/filefunc.inc.php'; + print __METHOD__." DOL_MAIN_URL_ROOT=".DOL_MAIN_URL_ROOT."\n"; print __METHOD__." DOL_URL_ROOT=".DOL_URL_ROOT."\n"; print __METHOD__." DOL_MAIN_URL_ROOT_ALT=".DOL_MAIN_URL_ROOT_ALT."\n";