Difference between #1 and #2 of
How to re enable logging during unit testing

Revision #2 has been created by Asgaroth on Nov 14, 2011, 9:38:08 PM with the memo:

Uncommented a line that was commented in my own local file for personal purposes
« previous (#1)

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
[...]
11 0
10 followers
Viewed: 26 070 times
Version: 1.1
Category: How-tos
Written by: Asgaroth
Last updated by: Asgaroth
Created on: Nov 14, 2011
Last updated: 13 years ago
Update Article

Revisions

View all history