From afabd42dba2dd5d8b00ebd52f2909aca759fdfe0 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 29 May 2024 11:45:10 -0700 Subject: [PATCH] CLI-1336: Isolate cache dir per test --- src/Kernel.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Kernel.php b/src/Kernel.php index c14ae01c8..88b6705f4 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -37,6 +37,12 @@ public function registerContainerConfiguration(LoaderInterface $loader): void { $this->registerExtensionConfiguration($loader); } + /** @infection-ignore-all */ + public function getCacheDir(): string { + $testToken = getenv('TEST_TOKEN') ?? ''; + return parent::getCacheDir() . $testToken; + } + protected function registerExtensionConfiguration(mixed $loader): void { // Search for plugins. $finder = new Finder();