Added more YII_ENV constants.

This commit is contained in:
Qiang Xue
2013-07-31 07:18:59 -04:00
parent 5d9c23c67b
commit eda171e1be
7 changed files with 22 additions and 10 deletions

View File

@ -82,7 +82,7 @@ class ErrorHandler extends Component
*/
protected function renderException($exception)
{
if (Yii::$app instanceof \yii\console\Application || YII_ENV === 'test') {
if (Yii::$app instanceof \yii\console\Application || YII_ENV_TEST) {
echo Yii::$app->renderException($exception);
return;
}