Skip to content

Commit

Permalink
TestLogger: accept unchecked logs to satisfy expected logs only
Browse files Browse the repository at this point in the history
  • Loading branch information
mstilkerich committed Oct 22, 2022
1 parent 3980174 commit db383ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestLogger.php
Expand Up @@ -126,7 +126,7 @@ public function expectMessage(string $expLevel, string $expMsg): void

foreach ($this->logBuffer as &$recMsg) {
[ $level, $msg ] = $recMsg;
if (($level == $expLevel) && str_contains($msg, $expMsg)) {
if (($level == $expLevel) && str_contains($msg, $expMsg) && $recMsg[2] == "UNCHECKED") {
$recMsg[2] = 'CHECKED';
$found = true;
break;
Expand Down

0 comments on commit db383ae

Please sign in to comment.