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 @@
* \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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -6,5 +6,8 @@
<directory suffix=".php">../htdocs/includes/artichow/</directory>
<directory suffix=".php">../htdocs/includes/fpdf/</directory>
</blacklist>
<whitelist>
<directory suffix=".class.php">../htdocs/</directory>
</whitelist>
</filter>
</phpunit>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment