Add BackupDumper to the tests AutoLoader and kill the
authorPlatonides <platonides@gmail.com>
Thu, 31 May 2012 20:19:39 +0000 (22:19 +0200)
committerPlatonides <platonides@gmail.com>
Thu, 31 May 2012 20:19:39 +0000 (22:19 +0200)
register globals include vulnerability added in 8ba9856.

Change-Id: If7fa6d76c91daa44aa53e80ac39be4860a763723

tests/TestsAutoLoader.php
tests/phpunit/maintenance/DumpTestCase.php

index 2ea4924..3125284 100644 (file)
@@ -28,6 +28,7 @@ $wgAutoloadClasses += array(
 
        //maintenance
        'DumpTestCase' => "$testFolder/phpunit/maintenance/DumpTestCase.php",
+       'BackupDumper' => "$testFolder/../maintenance/backup.inc",
 
        //Generic providers
        'MediaWikiProvide' => "$testFolder/phpunit/includes/Providers.php",
index fd39c45..f64ad0b 100644 (file)
@@ -1,6 +1,4 @@
 <?php
-global $IP;
-require_once( "$IP/maintenance/backup.inc" );
 
 /**
  * Base TestCase for dumps