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;
}
}[...]