Skip to content

Commit

Permalink
add regression test to see if it fails on both macOS and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Jan 1, 2023
1 parent 730b5bc commit 8bed8cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/Adapter/FilesystemTest.php
Expand Up @@ -489,6 +489,23 @@ public function testDotFilesAreListed()
});
}

public function testRegressionAddingFileInDirectoryDueToCaseSensitivity()
{
$property = new PAdapter\AddRemoveAddModificationsStillAddTheFile(
Directory::named('0')
->add($file = File::named('L', None::of()))
->remove($file->name()),
File::named('l', None::of()),
);

$path = \sys_get_temp_dir().'/innmind/filesystem/';
(new FS)->remove($path);

$property->ensureHeldBy(Filesystem::mount(Path::of($path)));

(new FS)->remove($path);
}

public function properties(): iterable
{
foreach (PAdapter::list() as $property) {
Expand Down

0 comments on commit 8bed8cd

Please sign in to comment.