Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Feb 2, 2024
1 parent 995e8fb commit 2000935
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/Unit/Service/FileSystemServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,28 @@ public function testGetImageSizeOnNotExistingFileGivesZeros(): void
$this->assertSame(0, $size->getWidth());
$this->assertSame(0, $size->getHeight());
}

public static function removeByGlobDataProvider(): \Generator
{
yield "regular file list" => [
'startStructure' => [
'special.txt' => 'content',
'special_2.txt' => 'content',
'other.xxx' => 'content'
],
'expectedStructure' => [
'other'
],
'glob' => 'special*'
];
}

/** @dataProvider removeByGlobDataProvider */
public function testRemoveByGlob(array $startStructure): void
{
$root = vfsStream::setup('root', 0777, $startStructure)->url();

$files = scandir($root);
var_dump($files);
}
}

0 comments on commit 2000935

Please sign in to comment.