Revision #4 has been created by Mike on Jun 15, 2012, 8:19:16 AM with the memo:
Fix formatting
« previous (#3)
Changes
Title
unchanged
Access log output from unit tests
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
testing, Logging, debug
Content
changed
[...]
* @return bool wether message with given pattern, level and category was found
*/
public static function hasMessage($pattern, $l=null, $c=null)
{
foreach(self::$messages as $m)
if(
preg_match($pattern, $m[0]) &&
($l===null || $m[1]===$l) &&
($c===null || $m[2]===$c)
)
return true;
return false;
}
}[...]