Skip to content

Commit 37c9111

Browse files
committed
fix: repair minimum and split dependency checks
declare standalone test dependencies and use a traversable Flysystem fixture.
1 parent 52f4698 commit 37c9111

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/Adapter/Filesystem/Tests/FilesystemCachePoolTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testCleanupOnExpire()
5454
public function testClearIgnoresFileRemovedByAnotherProcess(): void
5555
{
5656
$filesystem = $this->createMock(FilesystemOperator::class);
57-
$filesystem->method('listContents')->willReturn(new DirectoryListing([new FileAttributes('cache/key')]));
57+
$filesystem->method('listContents')->willReturn(new DirectoryListing(new \ArrayIterator([new FileAttributes('cache/key')])));
5858
$filesystem->method('fileExists')->with('cache/key')->willReturn(false);
5959
$filesystem->method('delete')->with('cache/key')->willThrowException(UnableToDeleteFile::atLocation('cache/key'));
6060

‎src/Encryption/composer.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"psr/cache": "^3.0"
3636
},
3737
"require-dev": {
38+
"cache/array-adapter": "^2.0",
3839
"cache/filesystem-adapter": "^2.0",
3940
"cache/integration-tests": "^1.0@dev",
4041
"phpunit/phpunit": "^11.5"

‎src/Prefixed/composer.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"psr/simple-cache": "^3.0"
2424
},
2525
"require-dev": {
26+
"cache/array-adapter": "^2.0",
2627
"cache/integration-tests": "^1.0@dev",
2728
"phpunit/phpunit": "^11.5"
2829
},

‎src/Taggable/composer.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"psr/cache": "^3.0"
3434
},
3535
"require-dev": {
36+
"cache/array-adapter": "^2.0",
3637
"cache/integration-tests": "^1.0@dev",
3738
"phpunit/phpunit": "^11.5",
3839
"symfony/cache": "^7.4 || ^8.0"

0 commit comments

Comments
 (0)