X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fmedia%2FExifRotationTest.php;h=e64d4afadc126f96d725c8a72256a31d507fd7f3;hb=c073e531cf7a7fe055f002148e97159006b75c22;hp=fff101f3a2149f6b49a5798a4d80fc9cb0487fd4;hpb=9a6b2a4fffb82840d0bf780eb4ecb873ad64fa54;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/media/ExifRotationTest.php b/tests/phpunit/includes/media/ExifRotationTest.php index fff101f3a2..e64d4afadc 100644 --- a/tests/phpunit/includes/media/ExifRotationTest.php +++ b/tests/phpunit/includes/media/ExifRotationTest.php @@ -190,6 +190,11 @@ class ExifRotationTest extends MediaWikiMediaTestCase { $file = $this->dataFile( $name, $type ); $thumb = $file->transform( $params, File::RENDER_NOW | File::RENDER_FORCE ); + if ( $thumb->isError() ) { + /** @var MediaTransformError $thumb */ + $this->fail( $thumb->toText() ); + } + $this->assertEquals( $out[0], $thumb->getWidth(),