Fix phpunit
This commit is contained in:
parent
95dc25587c
commit
7212d6bb03
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
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/Autoload.php';
|
//require_once 'PHPUnit/Autoload.php';
|
||||||
require_once dirname(__FILE__).'/../../htdocs/master.inc.php';
|
require_once dirname(__FILE__).'/../../htdocs/master.inc.php';
|
||||||
require_once dirname(__FILE__).'/../../htdocs/mymodule/class/myobject.class.php';
|
require_once dirname(__FILE__).'/../../htdocs/mymodule/class/myobject.class.php';
|
||||||
@ -45,7 +46,7 @@ $langs->load("main");
|
|||||||
* @backupStaticAttributes enabled
|
* @backupStaticAttributes enabled
|
||||||
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
||||||
*/
|
*/
|
||||||
class MyObjectTest extends \PHPUnit_Framework_TestCase
|
class MyObjectTest extends PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected $savconf;
|
protected $savconf;
|
||||||
protected $savuser;
|
protected $savuser;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user