+ add the test init file.
This commit is contained in:
18
test/init.php
Normal file
18
test/init.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
chdir(dirname(__FILE__));
|
||||
|
||||
/* Load the framework. */
|
||||
include '../framework/router.class.php';
|
||||
include '../framework/control.class.php';
|
||||
include '../framework/model.class.php';
|
||||
include '../framework/helper.class.php';
|
||||
|
||||
/* Create the app. */
|
||||
$app = router::createApp('pms', dirname(dirname(__FILE__)));
|
||||
|
||||
/* Reconnect to the test database. */
|
||||
include '../config/test.php';
|
||||
$app->connectDB();
|
||||
|
||||
/* Load the common module. */
|
||||
$common = $app->loadCommon();
|
||||
Reference in New Issue
Block a user