yiit.php 694 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Yii test script file.
  4. *
  5. * This script is meant to be included at the beginning
  6. * of the unit and function test bootstrap files.
  7. *
  8. * @author Qiang Xue <qiang.xue@gmail.com>
  9. * @link http://www.yiiframework.com/
  10. * @copyright 2008-2013 Yii Software LLC
  11. * @license http://www.yiiframework.com/license/
  12. */
  13. // disable Yii error handling logic
  14. defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
  15. defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',false);
  16. require_once(dirname(__FILE__).'/yii.php');
  17. Yii::import('system.test.CTestCase');
  18. Yii::import('system.test.CDbTestCase');
  19. Yii::import('system.test.CWebTestCase');