Merge "Remove JavaScript global variable wgLoadScript"
[lhc/web/wiklou.git] / tests / phpunit / includes / media / ExifRotationTest.php
index fff101f..e64d4af 100644 (file)
@@ -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(),