diff --git a/test/CommandeTest.php b/test/CommandeTest.php index 5fd40db442d..342394096b4 100644 --- a/test/CommandeTest.php +++ b/test/CommandeTest.php @@ -23,6 +23,7 @@ * \version $Id$ * \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'; diff --git a/test/FactureTest.php b/test/FactureTest.php index 8ae7d0e42e5..63e2b788555 100644 --- a/test/FactureTest.php +++ b/test/FactureTest.php @@ -23,6 +23,7 @@ * \version $Id$ * \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'; diff --git a/test/PropalTest.php b/test/PropalTest.php index ed71a273222..d43a1fda434 100644 --- a/test/PropalTest.php +++ b/test/PropalTest.php @@ -23,6 +23,7 @@ * \version $Id$ * \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'; diff --git a/test/phpunittestok.xml b/test/phpunittestok.xml index 092b9536ae0..1dad0122a5d 100644 --- a/test/phpunittestok.xml +++ b/test/phpunittestok.xml @@ -6,5 +6,8 @@ ../htdocs/includes/artichow/ ../htdocs/includes/fpdf/ + + ../htdocs/ + \ No newline at end of file