<?php
+/**
+ * @covers ZipDirectoryReader
+ * NOTE: this test is more like an integration test than a unit test
+ */
class ZipDirectoryReaderTest extends MediaWikiTestCase {
var $zipDir, $entries;
protected function setUp() {
+ parent::setUp();
$this->zipDir = __DIR__ . '/../data/zip';
}
}
function testMultiDisk0() {
- $this->readZipAssertError( 'split.zip', 'zip-unsupported',
+ $this->readZipAssertError( 'split.zip', 'zip-unsupported',
'Split zip error' );
}
function testNoSignature() {
- $this->readZipAssertError( 'nosig.zip', 'zip-wrong-format',
+ $this->readZipAssertError( 'nosig.zip', 'zip-wrong-format',
'No signature should give "wrong format" error' );
}
}
function testWrongCDStart() {
- $this->readZipAssertError( 'wrong-cd-start-disk.zip', 'zip-unsupported',
+ $this->readZipAssertError( 'wrong-cd-start-disk.zip', 'zip-unsupported',
'Wrong CD start disk error' );
}