From f718e7710aa34dd88670e14203e00dc24cf6f1d3 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Tue, 15 Jul 2014 10:31:07 -0700 Subject: [PATCH] Small tweaks to media handler tests * Whack @group Media everywhere * If testing access to a nonexistent file, make it obvious from its name * Grammar Change-Id: I845b484b78b3eb1e5a97f339777d3b7c9ee17712 --- tests/phpunit/includes/media/BitmapMetadataHandlerTest.php | 4 ++++ tests/phpunit/includes/media/BitmapScalingTest.php | 3 +++ tests/phpunit/includes/media/DjVuTest.php | 5 +++-- tests/phpunit/includes/media/ExifBitmapTest.php | 3 +++ tests/phpunit/includes/media/ExifRotationTest.php | 1 + tests/phpunit/includes/media/ExifTest.php | 1 + tests/phpunit/includes/media/FakeDimensionFile.php | 3 +++ tests/phpunit/includes/media/FormatMetadataTest.php | 3 +++ tests/phpunit/includes/media/GIFMetadataExtractorTest.php | 4 ++++ tests/phpunit/includes/media/GIFTest.php | 4 ++++ tests/phpunit/includes/media/IPTCTest.php | 3 +++ tests/phpunit/includes/media/JpegMetadataExtractorTest.php | 1 + tests/phpunit/includes/media/JpegTest.php | 2 ++ tests/phpunit/includes/media/MediaHandlerTest.php | 3 +++ tests/phpunit/includes/media/PNGMetadataExtractorTest.php | 1 + tests/phpunit/includes/media/PNGTest.php | 4 ++++ tests/phpunit/includes/media/SVGMetadataExtractorTest.php | 1 + tests/phpunit/includes/media/SVGTest.php | 3 +++ tests/phpunit/includes/media/TiffTest.php | 4 ++++ tests/phpunit/includes/media/XCFTest.php | 4 ++++ tests/phpunit/includes/media/XMPTest.php | 3 ++- tests/phpunit/includes/media/XMPValidateTest.php | 4 ++++ 22 files changed, 61 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php b/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php index 8402522a66..c720d7b782 100644 --- a/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php +++ b/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php @@ -1,4 +1,8 @@ assertEquals( 'a:1:{s:5:"error";s:25:"Error extracting metadata";}', - $this->handler->getMetadata( null, $this->filePath . '/README' ), - 'Getting Metadata for an inexistent file should returns false' + $this->handler->getMetadata( null, $this->filePath . '/some-nonexistent-file' ), + 'Getting metadata for an inexistent file should return false' ); } diff --git a/tests/phpunit/includes/media/ExifBitmapTest.php b/tests/phpunit/includes/media/ExifBitmapTest.php index 44b20702bf..41330f4182 100644 --- a/tests/phpunit/includes/media/ExifBitmapTest.php +++ b/tests/phpunit/includes/media/ExifBitmapTest.php @@ -1,5 +1,8 @@