diff options
Diffstat (limited to 'tests/phpunit/includes/utils/ZipDirectoryReaderTest.php')
-rw-r--r-- | tests/phpunit/includes/utils/ZipDirectoryReaderTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php b/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php index 492b2509ce58..631e7d455466 100644 --- a/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php +++ b/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php @@ -13,17 +13,17 @@ class ZipDirectoryReaderTest extends MediaWikiIntegrationTestCase { $this->zipDir = __DIR__ . '/../../data/zip'; } - function zipCallback( $entry ) { + public function zipCallback( $entry ) { $this->entries[] = $entry; } - function readZipAssertError( $file, $error, $assertMessage ) { + public function readZipAssertError( $file, $error, $assertMessage ) { $this->entries = []; $status = ZipDirectoryReader::read( "{$this->zipDir}/$file", [ $this, 'zipCallback' ] ); $this->assertTrue( $status->hasMessage( $error ), $assertMessage ); } - function readZipAssertSuccess( $file, $assertMessage ) { + public function readZipAssertSuccess( $file, $assertMessage ) { $this->entries = []; $status = ZipDirectoryReader::read( "{$this->zipDir}/$file", [ $this, 'zipCallback' ] ); $this->assertTrue( $status->isOK(), $assertMessage ); |