From 8fa87de44dc735c5699f551693ed05e84b67bca3 Mon Sep 17 00:00:00 2001 From: yethee Date: Tue, 14 May 2024 14:07:06 +0300 Subject: [PATCH] Fix tests --- tests/Vocab/Loader/DefaultVocabLoaderTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Vocab/Loader/DefaultVocabLoaderTest.php b/tests/Vocab/Loader/DefaultVocabLoaderTest.php index da60faa..f3aa8da 100644 --- a/tests/Vocab/Loader/DefaultVocabLoaderTest.php +++ b/tests/Vocab/Loader/DefaultVocabLoaderTest.php @@ -11,6 +11,7 @@ use function copy; use function dirname; +use function file_exists; use function file_put_contents; use function hash; use function rmdir; @@ -63,6 +64,10 @@ protected function setUp(): void protected function tearDown(): void { + if (! file_exists($this->cacheDir)) { + return; + } + self::removeDir($this->cacheDir); }