Skip to content

Commit

Permalink
refactor: more preg_match() and empty string only check
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 28, 2024
1 parent c595ebb commit 4c5daaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Test/CIUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function assertLogContains(string $level, string $logMessage, string $mes
{
$this->assertTrue(
TestLogger::didLog($level, $logMessage, false),
$message !== '' && $message !== '0' ? $message : sprintf(
$message !== '' ? $message : sprintf(
'Failed asserting that logs have a record of message containing "%s" with level "%s".',
$logMessage,
$level
Expand Down

0 comments on commit 4c5daaf

Please sign in to comment.