From afd67910750dde1346d7ab33675c1bca9c12a6a0 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Wed, 6 Aug 2025 21:02:14 +0800 Subject: [PATCH] Fix phpunit --- tests/bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index d4fa46c7..dcb4316e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,3 +6,8 @@ require_once __DIR__ . '/../src/globals/internal-env.php'; require_once __DIR__ . '/mock/SPC_store.php'; \SPC\util\AttributeMapper::init(); + +$log_dir = SPC_LOGS_DIR; +if (!file_exists($log_dir)) { + mkdir($log_dir, 0755, true); +}