ZipRangeReaderTest
extends TestCase
in package
Test suite for Mingulay ZipRangeReader.
Tags
Table of Contents
- FIXTURE_PATH = "test/fixtures/"
- testConstructWithInvalidCDR() : mixed
- Test that the constructor errors out if the CDR is not valid.
- testConstructWithInvalidEOCD() : mixed
- Test that the constructor errors out if the EOCD is not valid.
- testConstructWithInvalidFile() : mixed
- Test that the constructor errors out if you pass it something that is not a zip file.
- testConstructWithMultipleFiles() : mixed
- Test the construction flow with a valid Zip containing a multiple files.
- testConstructWithMultipleFilesWithComment() : mixed
- Test the construction flow with a valid Zip containing multiple files and a whole-file comment.
- testConstructWithSingleFile() : mixed
- Test the construction flow with a valid Zip containing a single file.
- testConstructWithSingleFileWithComment() : mixed
- Test the construction flow with a valid Zip containing a single file and a whole-file comment.
- testConstructWithSingleFileWithFileComment() : mixed
- Test the construction flow with a valid Zip containing a single file and a file-level comment.
- testGetStreamWithNonExistentFile() : mixed
- Test that ::getStream throws an error for a non-existent file.
- testGetStreamWithUnsupportedCompression() : mixed
- Test that ::getStream returns an error for a file with an unsupported compression type.
- testGetStreamWithValidFile() : mixed
- Test that ::getStream returns file data for a valid file.
Constants
FIXTURE_PATH
public
mixed
FIXTURE_PATH
= "test/fixtures/"
Tags
Methods
testConstructWithInvalidCDR()
Test that the constructor errors out if the CDR is not valid.
public
testConstructWithInvalidCDR() : mixed
Tags
Return values
mixed —testConstructWithInvalidEOCD()
Test that the constructor errors out if the EOCD is not valid.
public
testConstructWithInvalidEOCD() : mixed
Tags
Return values
mixed —testConstructWithInvalidFile()
Test that the constructor errors out if you pass it something that is not a zip file.
public
testConstructWithInvalidFile() : mixed
Tags
Return values
mixed —testConstructWithMultipleFiles()
Test the construction flow with a valid Zip containing a multiple files.
public
testConstructWithMultipleFiles() : mixed
Tags
Return values
mixed —testConstructWithMultipleFilesWithComment()
Test the construction flow with a valid Zip containing multiple files and a whole-file comment.
public
testConstructWithMultipleFilesWithComment() : mixed
Tags
Return values
mixed —testConstructWithSingleFile()
Test the construction flow with a valid Zip containing a single file.
public
testConstructWithSingleFile() : mixed
Tags
Return values
mixed —testConstructWithSingleFileWithComment()
Test the construction flow with a valid Zip containing a single file and a whole-file comment.
public
testConstructWithSingleFileWithComment() : mixed
Tags
Return values
mixed —testConstructWithSingleFileWithFileComment()
Test the construction flow with a valid Zip containing a single file and a file-level comment.
public
testConstructWithSingleFileWithFileComment() : mixed
Tags
Return values
mixed —testGetStreamWithNonExistentFile()
Test that ::getStream throws an error for a non-existent file.
public
testGetStreamWithNonExistentFile() : mixed
Tags
Return values
mixed —testGetStreamWithUnsupportedCompression()
Test that ::getStream returns an error for a file with an unsupported compression type.
public
testGetStreamWithUnsupportedCompression() : mixed
Tags
Return values
mixed —testGetStreamWithValidFile()
Test that ::getStream returns file data for a valid file.
public
testGetStreamWithValidFile() : mixed