Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jan 27, 2025
1 parent 6222359 commit 2eb0d00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Cache/FileHandler/CacheFileHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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', [])));
}

Expand Down

0 comments on commit 2eb0d00

Please sign in to comment.