diff options
Diffstat (limited to 'tests/DebugTest.php')
| -rw-r--r-- | tests/DebugTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/DebugTest.php b/tests/DebugTest.php index 8156035..3c4653c 100644 --- a/tests/DebugTest.php +++ b/tests/DebugTest.php @@ -141,8 +141,8 @@ final class DebugTest extends TestCase Debug::log('timestamp test', Debug::LOG_NORMAL); $content = file_get_contents($this->tmpLogfile); - // Format: [HH:MM:SS/PID] message - $this->assertMatchesRegularExpression('/\[\d{2}:\d{2}:\d{2}\/\d+\]/', $content); + // Format: [HH:MM:SS/PID] message, PID is optional + $this->assertMatchesRegularExpression('/\[\d{2}:\d{2}:\d{2}(\/\d+)?\]/', $content); } public function test_log_multiple_messages_to_file(): void |
