diff --git a/tests/Archive7zTest.php b/tests/Archive7zTest.php index 1d95949..fbe92bc 100644 --- a/tests/Archive7zTest.php +++ b/tests/Archive7zTest.php @@ -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); + } } diff --git a/tests/fixtures/winrar-7.0/partial/WinRAR.part1.rar b/tests/fixtures/winrar-7.0/partial/WinRAR.part1.rar new file mode 100644 index 0000000..0d42abe Binary files /dev/null and b/tests/fixtures/winrar-7.0/partial/WinRAR.part1.rar differ diff --git a/tests/fixtures/winrar-7.0/partial/WinRAR.part2.rar b/tests/fixtures/winrar-7.0/partial/WinRAR.part2.rar new file mode 100644 index 0000000..20c1347 Binary files /dev/null and b/tests/fixtures/winrar-7.0/partial/WinRAR.part2.rar differ