From 1fbf6c466dc01d63ba119e4614ef9190ee9d87ff Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 3 Sep 2018 09:39:02 -0400 Subject: add README.mkd, examples/examples.json, and minor comment cleanups --- tests/LargeFileTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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) { -- cgit v1.2.3