From a64e869377a3fc1a123415775d1c67ad19980ac3 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 27 Sep 2014 10:38:58 +0200 Subject: [PATCH] Remove explict autoload from phpunit tests The phpunit tests are loading all classes, so there is no need for an explicit load. Change-Id: Ifb26a5082e3366c44f6a1e65baf64c6ff9bf8449 --- tests/phpunit/includes/SanitizerTest.php | 6 ------ tests/phpunit/includes/media/SVGMetadataExtractorTest.php | 5 ----- 2 files changed, 11 deletions(-) diff --git a/tests/phpunit/includes/SanitizerTest.php b/tests/phpunit/includes/SanitizerTest.php index 50c1e50980..f960f48455 100644 --- a/tests/phpunit/includes/SanitizerTest.php +++ b/tests/phpunit/includes/SanitizerTest.php @@ -6,12 +6,6 @@ */ class SanitizerTest extends MediaWikiTestCase { - protected function setUp() { - parent::setUp(); - - AutoLoader::loadClass( 'Sanitizer' ); - } - /** * @covers Sanitizer::decodeCharReferences */ diff --git a/tests/phpunit/includes/media/SVGMetadataExtractorTest.php b/tests/phpunit/includes/media/SVGMetadataExtractorTest.php index ab33d1c22c..0241aec4b5 100644 --- a/tests/phpunit/includes/media/SVGMetadataExtractorTest.php +++ b/tests/phpunit/includes/media/SVGMetadataExtractorTest.php @@ -6,11 +6,6 @@ */ class SVGMetadataExtractorTest extends MediaWikiTestCase { - protected function setUp() { - parent::setUp(); - AutoLoader::loadClass( 'SVGMetadataExtractorTest' ); - } - /** * @dataProvider provideSvgFiles */ -- 2.20.1