Skip to content

ZipStreamTest

  • Full name: \ZipStream\Test\ZipStreamTest
  • Parent class: TestCase

Methods

testAddFile

public testAddFile(): void

testAddFileUtf8NameComment

public testAddFileUtf8NameComment(): void

testAddFileUtf8NameNonUtfComment

public testAddFileUtf8NameNonUtfComment(): void

testAddFileWithStorageMethod

public testAddFileWithStorageMethod(): void

testAddFileFromPath

public testAddFileFromPath(): void

testAddFileFromPathFileNotFoundException

public testAddFileFromPathFileNotFoundException(): void

testAddFileFromPathFileNotReadableException

public testAddFileFromPathFileNotReadableException(): void

testAddFileFromPathWithStorageMethod

public testAddFileFromPathWithStorageMethod(): void

testAddLargeFileFromPath

public testAddLargeFileFromPath(): void

testAddFileFromStream

public testAddFileFromStream(): void

testAddFileFromStreamUnreadableInput

public testAddFileFromStreamUnreadableInput(): void

testAddFileFromStreamBrokenOutputWrite

public testAddFileFromStreamBrokenOutputWrite(): void

testAddFileFromStreamBrokenInputRewind

public testAddFileFromStreamBrokenInputRewind(): void

testAddFileFromStreamUnseekableInputWithoutZeroHeader

public testAddFileFromStreamUnseekableInputWithoutZeroHeader(): void

testAddFileFromStreamUnseekableInputWithZeroHeader

public testAddFileFromStreamUnseekableInputWithZeroHeader(): void

testAddFileFromStreamWithStorageMethod

public testAddFileFromStreamWithStorageMethod(): void

testAddFileFromPsr7Stream

public testAddFileFromPsr7Stream(): void

testAddLargeFileFromPsr7Stream

public testAddLargeFileFromPsr7Stream(): void

testContinueFinishedZip

public testContinueFinishedZip(): void

testManyFilesWithoutZip64

public testManyFilesWithoutZip64(): void

testManyFilesWithZip64

public testManyFilesWithZip64(): void

testLongZipWithout64

public testLongZipWithout64(): void

testLongZipWith64

public testLongZipWith64(): void

testAddLargeFileWithoutZip64WithZeroHeader

public testAddLargeFileWithoutZip64WithZeroHeader(): void

testAddsZip64HeaderWhenNeeded

public testAddsZip64HeaderWhenNeeded(): void

testDoesNotAddZip64HeaderWhenNotNeeded

public testDoesNotAddZip64HeaderWhenNotNeeded(): void

testAddLargeFileWithoutZip64WithoutZeroHeader

public testAddLargeFileWithoutZip64WithoutZeroHeader(): void

testAddFileFromPsr7StreamWithOutputToPsr7Stream

public testAddFileFromPsr7StreamWithOutputToPsr7Stream(): void

testAddFileFromPsr7StreamWithFileSizeSet

public testAddFileFromPsr7StreamWithFileSizeSet(): void

testCreateArchiveHeaders

public testCreateArchiveHeaders(): void

testCreateArchiveWithFlushOptionSet

public testCreateArchiveWithFlushOptionSet(): void

testCreateArchiveWithOutputBufferingOffAndFlushOptionSet

public testCreateArchiveWithOutputBufferingOffAndFlushOptionSet(): void

testAddEmptyDirectory

public testAddEmptyDirectory(): void

testAddFileSimulate

public testAddFileSimulate(): void

testAddFileSimulateWithMaxSize

public testAddFileSimulateWithMaxSize(): void

testAddFileSimulateWithFstat

public testAddFileSimulateWithFstat(): void

testAddFileSimulateWithExactSizeZero

public testAddFileSimulateWithExactSizeZero(): void

testAddFileSimulateWithExactSizeInitial

public testAddFileSimulateWithExactSizeInitial(): void

testAddFileSimulateWithZeroSizeInFstat

public testAddFileSimulateWithZeroSizeInFstat(): void

testAddFileSimulateWithWrongExactSize

public testAddFileSimulateWithWrongExactSize(): void

testAddFileSimulateStrictZero

public testAddFileSimulateStrictZero(): void

testAddFileSimulateStrictInitial

public testAddFileSimulateStrictInitial(): void

testAddFileCallbackStrict

public testAddFileCallbackStrict(): void

testAddFileCallbackLax

public testAddFileCallbackLax(): void

testExecuteSimulation

public testExecuteSimulation(): void

testExecuteSimulationBeforeFinish

public testExecuteSimulationBeforeFinish(): void

addLargeFileFileFromPath

private addLargeFileFileFromPath(\ZipStream\CompressionMethod $compressionMethod, mixed $zeroHeader, mixed $zip64): void

Parameters:

Parameter Type Description
$compressionMethod \ZipStream\CompressionMethod
$zeroHeader mixed
$zip64 mixed

Inherited methods

setUp

protected setUp(): void

tearDown

protected tearDown(): void

getTmpFileStream

protected getTmpFileStream(): array

assertFileContains

protected assertFileContains(string $filePath, string $needle): void

Parameters:

Parameter Type Description
$filePath string
$needle string

assertFileDoesNotContain

protected assertFileDoesNotContain(string $filePath, string $needle): void

Parameters:

Parameter Type Description
$filePath string
$needle string

cmdExists

protected cmdExists(string $command): bool

Parameters:

Parameter Type Description
$command string

dumpZipContents

protected dumpZipContents(string $path): string

Parameters:

Parameter Type Description
$path string

validateAndExtractZip

protected validateAndExtractZip(string $zipPath): string

Parameters:

Parameter Type Description
$zipPath string

zipArchiveOpenErrorCodeName

protected zipArchiveOpenErrorCodeName(int $code): string

Parameters:

Parameter Type Description
$code int

getTmpDir

protected getTmpDir(): string

getRecursiveFileList

protected getRecursiveFileList(string $path, bool $includeDirectories = false): string[]

Parameters:

Parameter Type Description
$path string
$includeDirectories bool


Automatically generated on 2025-03-18