Skip to content

Commit b5105a0

Browse files
committed
using bin2hex before getting file content string
1 parent 9098d25 commit b5105a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/TarTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ public function testGetArchiveWithBzipCompress()
696696
$tar->addFile("$dir/zero.txt", 'zero.txt');
697697
$file = $tar->getArchive();
698698

699-
$this->assertGreaterThanOrEqual(102, strlen($file)); // 1 header block + 2 footer blocks
699+
$this->assertEquals(104, strlen(bin2hex($file))/2); // 1 header block + 2 footer blocks
700700
}
701701

702702
public function testSaveWithCompressionAuto()

0 commit comments

Comments
 (0)