$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(),