Skip to content

Commit 7aaacf3

Browse files
committed
using filesize to check file size
1 parent 713d849 commit 7aaacf3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/TarTestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,10 @@ public function testGetArchiveWithBzipCompress()
695695
$tar->create();
696696
$tar->addFile("$dir/zero.txt", 'zero.txt');
697697
$file = $tar->getArchive();
698+
$output = vfsStream::url('home_root_path/saved.tar.bz2');
699+
file_put_contents($output, $file);
698700

699-
$this->assertInternalType('string', $file); // 1 header block + 2 footer blocks
701+
$this->assertEquals(104, filesize($output)); // 1 header block + 2 footer blocks
700702
}
701703

702704
public function testSaveWithCompressionAuto()

0 commit comments

Comments
 (0)