dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Improve documentation of constants throughout the codebase"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
media
/
ExifRotationTest.php
diff --git
a/tests/phpunit/includes/media/ExifRotationTest.php
b/tests/phpunit/includes/media/ExifRotationTest.php
index
fff101f
..
e64d4af
100644
(file)
--- 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 );
$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(),
$this->assertEquals(
$out[0],
$thumb->getWidth(),