Disable testIPTCParseForcedUTFButInvalid on PHP > 5.6.0 but < 5.6.10
authorReedy <reedy@wikimedia.org>
Wed, 10 Feb 2016 21:21:54 +0000 (21:21 +0000)
committerReedy <reedy@wikimedia.org>
Wed, 10 Feb 2016 21:22:11 +0000 (21:22 +0000)
Bug: T124574
Change-Id: I6893f7f549bb4145296c97ba2fc12583cd22e18e

tests/phpunit/includes/media/IPTCTest.php

index 6556186..4630b48 100644 (file)
@@ -44,7 +44,11 @@ class IPTCTest extends MediaWikiTestCase {
         * @covers IPTC::Parse
         */
        public function testIPTCParseForcedUTFButInvalid() {
-               if ( version_compare( PHP_VERSION, '5.5.26', '<' ) ) {
+               if ( version_compare( PHP_VERSION, '5.5.26', '<' )
+                       || ( version_compare( PHP_VERSION, '5.6.0', '>' )
+                               && version_compare( PHP_VERSION, '5.6.10', '<' )
+                       )
+               ) {
                        $this->markTestSkipped( 'Test fails on pre-PHP 5.5.25. See T124574/T39665 for details.' );
                }
                $iptcData = "Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x11\x1c\x02\x19\x00\x04\xC3\xC3\xC3\xB8"