+ add the test init file.

This commit is contained in:
wangchunsheng
2011-06-21 06:06:20 +00:00
parent d91fe9bd96
commit f2e2ccf8b0

18
test/init.php Normal file
View 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();