Merge "Remove JavaScript global variable wgLoadScript"
[lhc/web/wiklou.git] / tests / phpunit / includes / media / ExifRotationTest.php
index 5ae1763..e64d4af 100644 (file)
@@ -5,10 +5,13 @@
  * @group Media
  * @group medium
  *
- * @todo covers tags
+ * @covers BitmapHandler
  */
 class ExifRotationTest extends MediaWikiMediaTestCase {
 
+       /** @var BitmapHandler */
+       private $handler;
+
        protected function setUp() {
                parent::setUp();
                $this->checkPHPExtension( 'exif' );
@@ -187,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(),