New: Add phpunit tests
This commit is contained in:
parent
d31b444503
commit
0404ea1b5b
@ -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>
|
||||
Loading…
Reference in New Issue
Block a user