From: umherirrender Date: Sat, 27 Sep 2014 08:38:58 +0000 (+0200) Subject: Remove explict autoload from phpunit tests X-Git-Tag: 1.31.0-rc.0~13789 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=a64e869377a3fc1a123415775d1c67ad19980ac3;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 */