summaryrefslogtreecommitdiff
path: root/framework/yiit.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/yiit.php')
-rw-r--r--framework/yiit.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/framework/yiit.php b/framework/yiit.php
new file mode 100644
index 0000000..97415c0
--- /dev/null
+++ b/framework/yiit.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Yii test script file.
+ *
+ * This script is meant to be included at the beginning
+ * of the unit and function test bootstrap files.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.yiiframework.com/
+ * @copyright Copyright &copy; 2008-2011 Yii Software LLC
+ * @license http://www.yiiframework.com/license/
+ * @version $Id: yiit.php 2799 2011-01-01 19:31:13Z qiang.xue $
+ */
+
+// disable Yii error handling logic
+defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
+defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',false);
+
+require_once(dirname(__FILE__).'/yii.php');
+
+Yii::import('system.test.CTestCase');
+Yii::import('system.test.CDbTestCase');
+Yii::import('system.test.CWebTestCase');