MediaWiki  master
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

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

Definition at line 26 of file ZipDirectoryReaderTest.php.

References ZipDirectoryReader\read().

Referenced by testEmpty(), and testSimple().

ZipDirectoryReaderTest::setUp ( )
protected

Definition at line 11 of file ZipDirectoryReaderTest.php.

ZipDirectoryReaderTest::testBadCentralEntrySignature ( )

Definition at line 55 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testCentralDirectoryGap ( )

Definition at line 70 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testCentralDirectoryTruncated ( )

Definition at line 75 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testEmpty ( )

Definition at line 32 of file ZipDirectoryReaderTest.php.

References readZipAssertSuccess().

ZipDirectoryReaderTest::testLooksLikeZip64 ( )

Definition at line 80 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testMultiDisk0 ( )

Definition at line 36 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testNoSignature ( )

Definition at line 41 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testSimple ( )

Definition at line 46 of file ZipDirectoryReaderTest.php.

References readZipAssertSuccess().

ZipDirectoryReaderTest::testTrailingBytes ( )

Definition at line 60 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::testWrongCDStart ( )

Definition at line 65 of file ZipDirectoryReaderTest.php.

References readZipAssertError().

ZipDirectoryReaderTest::zipCallback (   $entry)

Definition at line 16 of file ZipDirectoryReaderTest.php.

Member Data Documentation

ZipDirectoryReaderTest::$entries
protected

Definition at line 9 of file ZipDirectoryReaderTest.php.

ZipDirectoryReaderTest::$zipDir
protected

Definition at line 8 of file ZipDirectoryReaderTest.php.


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