\Test\CoreModule\ModelZipArchiveManagerTest

Tests for ZIP archive manager manager

Summary

Methods
Properties
Constants
__construct()
testAddFile()
testAddFileFromText()
testAddFolder()
testAddJsonFromArray()
testExistNonExistingFile()
testExistFile()
testExistFileInSubDir()
testExistFiles()
testExtract()
testListFiles()
testOpenFile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\Test\CoreModule\Model\Container  container) : 

Constructor

Parameters

\Test\CoreModule\Model\Container container

Nette Tester Container

Returns

testAddFile()

testAddFile() : 

Test function to add file to the ZIP archive

Returns

testAddFileFromText()

testAddFileFromText() : 

Test function to add text file to the ZIP archive

Returns

testAddFolder()

testAddFolder() : 

Test function to add a directory into the ZIP archive

Returns

testAddJsonFromArray()

testAddJsonFromArray() : 

Test function to add a JSON file to the ZIP archive

Returns

testExistNonExistingFile()

testExistNonExistingFile() : 

Test function to check if the file(s) exist(s) in the archive (a non-existing file)

Returns

testExistFile()

testExistFile() : 

Test function to check if the file(s) exist(s) in the archive (a single file)

Returns

testExistFileInSubDir()

testExistFileInSubDir() : 

Test function to check if the file(s) exist(s) in the archive (a single file in a subdirectory)

Returns

testExistFiles()

testExistFiles() : 

Test function to check if the file(s) exist(s) in the archive (multiple files)

Returns

testExtract()

testExtract() : 

Test function to extract the archive content

Returns

testListFiles()

testListFiles() : 

Test function to list files in the archive

Returns

testOpenFile()

testOpenFile() : 

Test function to open a file in the archive

Returns