From fa0627c424274562102769f3830fd5966203685b Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 26 Jan 2016 10:12:17 -0800 Subject: [PATCH] Skip IPTCTest::testIPTCParseForcedUTFButInvalid() on pre-PHP5.5.26 Bug: T124574 Change-Id: If546c84a9449579cdea5af5b2a6b4b1e7203109e --- tests/phpunit/includes/media/IPTCTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/includes/media/IPTCTest.php b/tests/phpunit/includes/media/IPTCTest.php index 06542cfe90..655618653c 100644 --- a/tests/phpunit/includes/media/IPTCTest.php +++ b/tests/phpunit/includes/media/IPTCTest.php @@ -44,6 +44,9 @@ class IPTCTest extends MediaWikiTestCase { * @covers IPTC::Parse */ public function testIPTCParseForcedUTFButInvalid() { + if ( version_compare( PHP_VERSION, '5.5.26', '<' ) ) { + $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" . "\x1c\x01\x5A\x00\x03\x1B\x25\x47"; $res = IPTC::Parse( $iptcData ); -- 2.20.1