MediaWiki REL1_33
ZipDirectoryReaderTest Class Reference

ZipDirectoryReader NOTE: this test is more like an integration test than a unit test. More...

Inheritance diagram for ZipDirectoryReaderTest:
Collaboration diagram for ZipDirectoryReaderTest:

Public Member Functions

 readZipAssertError ( $file, $error, $assertMessage)
 
 readZipAssertSuccess ( $file, $assertMessage)
 
 testBadCentralEntrySignature ()
 
 testCentralDirectoryGap ()
 
 testCentralDirectoryTruncated ()
 
 testEmpty ()
 
 testLooksLikeZip64 ()
 
 testMultiDisk0 ()
 
 testNoSignature ()
 
 testSimple ()
 
 testTrailingBytes ()
 
 testWrongCDStart ()
 
 zipCallback ( $entry)
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $entries
 
 $zipDir
 

Detailed Description

ZipDirectoryReader NOTE: this test is more like an integration test than a unit test.

Definition at line 7 of file ZipDirectoryReaderTest.php.

Member Function Documentation

◆ readZipAssertError()

ZipDirectoryReaderTest::readZipAssertError ( $file,
$error,
$assertMessage )

◆ readZipAssertSuccess()

ZipDirectoryReaderTest::readZipAssertSuccess ( $file,
$assertMessage )

Definition at line 29 of file ZipDirectoryReaderTest.php.

References and(), and ZipDirectoryReader\read().

Referenced by testEmpty(), and testSimple().

◆ setUp()

ZipDirectoryReaderTest::setUp ( )
protected

Definition at line 14 of file ZipDirectoryReaderTest.php.

◆ testBadCentralEntrySignature()

ZipDirectoryReaderTest::testBadCentralEntrySignature ( )

Definition at line 58 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testCentralDirectoryGap()

ZipDirectoryReaderTest::testCentralDirectoryGap ( )

Definition at line 74 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testCentralDirectoryTruncated()

ZipDirectoryReaderTest::testCentralDirectoryTruncated ( )

Definition at line 79 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testEmpty()

ZipDirectoryReaderTest::testEmpty ( )

Definition at line 35 of file ZipDirectoryReaderTest.php.

References readZipAssertSuccess().

◆ testLooksLikeZip64()

ZipDirectoryReaderTest::testLooksLikeZip64 ( )

Definition at line 84 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testMultiDisk0()

ZipDirectoryReaderTest::testMultiDisk0 ( )

Definition at line 39 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testNoSignature()

ZipDirectoryReaderTest::testNoSignature ( )

Definition at line 44 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testSimple()

ZipDirectoryReaderTest::testSimple ( )

Definition at line 49 of file ZipDirectoryReaderTest.php.

References and(), and readZipAssertSuccess().

◆ testTrailingBytes()

ZipDirectoryReaderTest::testTrailingBytes ( )

Definition at line 63 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ testWrongCDStart()

ZipDirectoryReaderTest::testWrongCDStart ( )

Definition at line 69 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

◆ zipCallback()

ZipDirectoryReaderTest::zipCallback ( $entry)

Definition at line 19 of file ZipDirectoryReaderTest.php.

Member Data Documentation

◆ $entries

ZipDirectoryReaderTest::$entries
protected

Definition at line 12 of file ZipDirectoryReaderTest.php.

◆ $zipDir

ZipDirectoryReaderTest::$zipDir
protected

Definition at line 11 of file ZipDirectoryReaderTest.php.


The documentation for this class was generated from the following file: