public function TestLogger::hasRecordThatMatches in Lockr 7.3
File
- vendor/
psr/ log/ Psr/ Log/ Test/ TestLogger.php, line 109
Class
- TestLogger
- Used for testing purposes.
Namespace
Psr\Log\TestCode
public function hasRecordThatMatches($regex, $level) {
return $this
->hasRecordThatPasses(function ($rec) use ($regex) {
return preg_match($regex, $rec['message']) > 0;
}, $level);
}