Skip to content

Commit

Permalink
cleanup a @todo
Browse files Browse the repository at this point in the history
  • Loading branch information
jgivoni committed Feb 12, 2025
1 parent 6eb0038 commit b96fce0
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions tests/CacheAdapter_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,4 @@ protected static function createFilesystemAdapter(): FilesystemAdapter

return new CacheAdapter($fileSystemAdapter, $cache);
}

/**
* @test
* @dataProvider filenameProvider2
*/
public function writing_and_reading_files_with_special_path(string $path): void
{
parent::writing_and_reading_files_with_special_path($path);
}

/**
* "Override" function from parent which is not static and thus incompatible with phpunit 10
* @todo Remove when https://github.com/thephpleague/flysystem-adapter-test-utilities/commit/bf4c950b176bbefcc49c443cdab1ffb62a9fef5c is tagged (version >= 3.16?)
* @return Generator
*/
public static function filenameProvider2(): Generator
{
yield "a path with square brackets in filename 1" => ["some/file[name].txt"];
yield "a path with square brackets in filename 2" => ["some/file[0].txt"];
yield "a path with square brackets in filename 3" => ["some/file[10].txt"];
yield "a path with square brackets in dirname 1" => ["some[name]/file.txt"];
yield "a path with square brackets in dirname 2" => ["some[0]/file.txt"];
yield "a path with square brackets in dirname 3" => ["some[10]/file.txt"];
yield "a path with curly brackets in filename 1" => ["some/file{name}.txt"];
yield "a path with curly brackets in filename 2" => ["some/file{0}.txt"];
yield "a path with curly brackets in filename 3" => ["some/file{10}.txt"];
yield "a path with curly brackets in dirname 1" => ["some{name}/filename.txt"];
yield "a path with curly brackets in dirname 2" => ["some{0}/filename.txt"];
yield "a path with curly brackets in dirname 3" => ["some{10}/filename.txt"];
yield "a path with space in dirname" => ["some dir/filename.txt"];
yield "a path with space in filename" => ["somedir/file name.txt"];
}
}

0 comments on commit b96fce0

Please sign in to comment.