From e6f6d33bcb8b5d45725296e2b1eba13c09e385b6 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sat, 25 Apr 2026 17:21:04 +0800 Subject: [PATCH] test: clear stat cache after touching app/Commands in CommandsTest --- tests/system/CLI/CommandsTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/system/CLI/CommandsTest.php b/tests/system/CLI/CommandsTest.php index 4d6d5a59da13..7959ac7764a5 100644 --- a/tests/system/CLI/CommandsTest.php +++ b/tests/system/CLI/CommandsTest.php @@ -68,6 +68,7 @@ private function copyCommand(string $path): void } copy($path, APPPATH . 'Commands/' . basename($path)); + clearstatcache(true); } private function deleteCommand(string $path): void @@ -75,6 +76,8 @@ private function deleteCommand(string $path): void if (is_file(APPPATH . 'Commands/' . basename($path))) { unlink(APPPATH . 'Commands/' . basename($path)); } + + clearstatcache(true); } public function testRunOnUnknownCommand(): void