Difference between #3 and #4 of
Access log output from unit tests

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;
}
}
[...]
3 0
2 followers
Viewed: 16 013 times
Version: 1.1
Category: Tips
Written by: Mike
Last updated by: Mike
Created on: Jun 14, 2012
Last updated: 12 years ago
Update Article

Revisions

View all history