Access log output from unit tests

Comparing #3 with #4

Revision #4 was created by Mike Mike on Jun 15, 2012, 8:19:16 AM.

Fix formatting

Content

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