diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/LargeFileTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/LargeFileTest.php b/tests/LargeFileTest.php index c271b47..b1106ec 100644 --- a/tests/LargeFileTest.php +++ b/tests/LargeFileTest.php @@ -8,11 +8,12 @@ use \Pablotron\ZipStream\ZipStream; final class LargeFileTest extends BaseTestCase { public function testCreateLargeFile() : void { - # build 4M string + # size and number of chunks $chunk_size = (1 << 22); $num_chunks = 1025; - # calculate expected size + # calculate expected file size (4299161600, enough to overflow a + # 32-bit integer and trigger zip64 mode) $expected_size = $chunk_size * $num_chunks; $this->with_temp_zip(function(ZipStream &$zip) use ($chunk_size, $num_chunks) { |