Skip to content

Commit

Permalink
test: test default pattern matches all files
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 17, 2023
1 parent 5d1ee6a commit f2aad91
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/phpunit/DirectorySyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,16 @@ public function testSetPattern():void {
$copiedFiles = $sut->getCopiedFilesList();
self::assertCount(0, $copiedFiles);
}

public function testDefaultPatternMatchesAllFiles():void {
$source = $this->getRandomTmp();
$dest = $this->getRandomTmp();
mkdir($source, recursive: true);
$this->createRandomFiles($source);

$sut = new DirectorySync($source, $dest, $source);
$sut->exec();
$copiedFiles = $sut->getCopiedFilesList();
self::assertCount(3, $copiedFiles);
}
}

0 comments on commit f2aad91

Please sign in to comment.