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