From 2eb0d0053188e2904e122e3fc65685ec1b5217a4 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 27 Jan 2025 12:03:21 +0100 Subject: [PATCH] Try --- tests/Cache/FileHandler/CacheFileHandlerTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Cache/FileHandler/CacheFileHandlerTest.php b/tests/Cache/FileHandler/CacheFileHandlerTest.php index a529422..643a9de 100644 --- a/tests/Cache/FileHandler/CacheFileHandlerTest.php +++ b/tests/Cache/FileHandler/CacheFileHandlerTest.php @@ -8,6 +8,7 @@ use TwigCsFixer\Cache\FileHandler\CacheFileHandler; use TwigCsFixer\Cache\Signature; use TwigCsFixer\Exception\CannotWriteCacheException; +use TwigCsFixer\Test\TestHelper; use TwigCsFixer\Tests\FileTestCase; final class CacheFileHandlerTest extends FileTestCase @@ -49,9 +50,9 @@ public function testReadSuccess(): void public function testWriteFailureMissingDirectory(): void { - $cacheFileHandler = new CacheFileHandler('/fakeDir/foo.php'); + $cacheFileHandler = new CacheFileHandler('/fake:Dir/foo.php'); - $this->expectExceptionObject(CannotWriteCacheException::missingDirectory('/fakeDir/foo.php')); + $this->expectExceptionObject(CannotWriteCacheException::missingDirectory('/fake:Dir/foo.php')); $cacheFileHandler->write(new Cache(new Signature('8.0', '1', []))); }