about summary refs log tree commit diff stats
path: root/tests/DebugTest.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-27 20:38:23 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-27 20:38:23 +0300
commitac7b51679ca4df5fbb70d0ac796935de191b5e0d (patch)
tree57edeb202b8308a51927a76d50f1ae558d890d69 /tests/DebugTest.php
parentbac87949cb64ce8fffb4cd2d4e7440e943c7b314 (diff)
downloadthe-epube-ac7b51679ca4df5fbb70d0ac796935de191b5e0d.tar.gz
the-epube-ac7b51679ca4df5fbb70d0ac796935de191b5e0d.tar.xz
for log timestamp test, treat PID as optional; add idn tests
Diffstat (limited to 'tests/DebugTest.php')
-rw-r--r--tests/DebugTest.php4
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