X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fmedia%2FJpegMetadataExtractorTest.php;h=80e03cca194103526103c8d87f770ad459b90cec;hb=f718e7710aa34dd88670e14203e00dc24cf6f1d3;hp=6d1d681bc12f14ae9f920ac8f0e9f51102e86206;hpb=0732467b6de636ed928cf590f7a37e0d8ddb378c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/media/JpegMetadataExtractorTest.php b/tests/phpunit/includes/media/JpegMetadataExtractorTest.php index 6d1d681bc1..80e03cca19 100644 --- a/tests/phpunit/includes/media/JpegMetadataExtractorTest.php +++ b/tests/phpunit/includes/media/JpegMetadataExtractorTest.php @@ -6,6 +6,7 @@ * but it costs money). The implementation of it currently in MediaWiki is based * solely on reading the standard, without any real world test files. * + * @group Media * @covers JpegMetadataExtractor */ class JpegMetadataExtractorTest extends MediaWikiTestCase { @@ -70,7 +71,8 @@ class JpegMetadataExtractorTest extends MediaWikiTestCase { public function testPSIRExtraction() { $res = JpegMetadataExtractor::segmentSplitter( $this->filePath . 'jpeg-xmp-psir.jpg' ); - $expected = '50686f746f73686f7020332e30003842494d04040000000000181c02190004746573741c02190003666f6f1c020000020004'; + $expected = '50686f746f73686f7020332e30003842494d04040000000' + . '000181c02190004746573741c02190003666f6f1c020000020004'; $this->assertEquals( $expected, bin2hex( $res['PSIR'][0] ) ); } @@ -80,7 +82,6 @@ class JpegMetadataExtractorTest extends MediaWikiTestCase { $this->assertEquals( $expected, $res['XMP'] ); } - public function testIPTCHashComparisionNoHash() { $segments = JpegMetadataExtractor::segmentSplitter( $this->filePath . 'jpeg-xmp-psir.jpg' ); $res = JpegMetadataExtractor::doPSIR( $segments['PSIR'][0] );