testPngNativetZtxt requires zlib extension
authorPlatonides <platonides@gmail.com>
Mon, 14 Jan 2013 21:16:50 +0000 (22:16 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 28 Jan 2013 11:18:18 +0000 (11:18 +0000)
Change-Id: I27e84548ff792ee3bac9b582ba058a029a786768

tests/phpunit/includes/media/PNGMetadataExtractorTest.php

index e027668..0260f29 100644 (file)
@@ -9,6 +9,8 @@ class PNGMetadataExtractorTest extends MediaWikiTestCase {
         * Tests zTXt tag (compressed textual metadata) 
         */
        function testPngNativetZtxt() {
+               $this->checkPHPExtension( 'zlib' );
+
                $meta = PNGMetadataExtractor::getMetadata( $this->filePath .
                        'Png-native-test.png' );
                $expected = "foo bar baz foo foo foo foof foo foo foo foo";