Skip to content
Snippets Groups Projects
Commit 0404ea1b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Add phpunit tests

parent d31b4445
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* \version $Id$ * \version $Id$
* \remarks To run this script as CLI: phpunit filename.php * \remarks To run this script as CLI: phpunit filename.php
*/ */
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
//define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver //define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver
require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/Framework.php';
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* \version $Id$ * \version $Id$
* \remarks To run this script as CLI: phpunit filename.php * \remarks To run this script as CLI: phpunit filename.php
*/ */
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
//define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver //define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver
require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/Framework.php';
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* \version $Id$ * \version $Id$
* \remarks To run this script as CLI: phpunit filename.php * \remarks To run this script as CLI: phpunit filename.php
*/ */
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
//define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver //define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver
require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/Framework.php';
......
...@@ -6,5 +6,8 @@ ...@@ -6,5 +6,8 @@
<directory suffix=".php">../htdocs/includes/artichow/</directory> <directory suffix=".php">../htdocs/includes/artichow/</directory>
<directory suffix=".php">../htdocs/includes/fpdf/</directory> <directory suffix=".php">../htdocs/includes/fpdf/</directory>
</blacklist> </blacklist>
<whitelist>
<directory suffix=".class.php">../htdocs/</directory>
</whitelist>
</filter> </filter>
</phpunit> </phpunit>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment