Changes
Title
unchanged
How to re enable logging during unit testing
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
PHPUnit, testing, Test driven developement, Logging, logger
Content
changed
[...]
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
require_once($yiit);
//require_once(dirname(__FILE__).'/WebTestCase.php');
Yii::createWebApplication($config);
// automatically send every new message to available log routes
Yii::getLogger()->autoFlush = 1;
// when sending a message to log routes, also notify them to dump the message[...]