New: Add phpunit tests

This commit is contained in:
Laurent Destailleur 2010-04-27 08:36:14 +00:00
parent d31b444503
commit 0404ea1b5b
4 changed files with 6 additions and 0 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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>