Skip to content

Commit

Permalink
tests: add test for partial rar archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Mar 27, 2024
1 parent e4e40e1 commit 8a806e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Archive7zTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -874,4 +874,13 @@ public function testGetEntriesPathMaskWildcard(string $archiveName): void
self::assertIsArray($entries);
self::assertCount(3, $entries); // 1 folder + 2 files in the folder
}

public function testPartialRar(): void
{
$obj = new Archive7z($this->fixturesDir.'/winrar-7.0/partial/WinRAR.part1.rar');
$entries = $obj->getEntries();

self::assertIsArray($entries);
self::assertCount(1, $entries);
}
}
Binary file not shown.
Binary file not shown.

0 comments on commit 8a806e4

Please sign in to comment.