backupPrefetchTest.php, backupTextPassTest.php, fetchTextTest.php
and getSlaveServerTest.php
Change-Id: Ie309f4377e4199d80c0f45dc761d3a14b8d00ec2
<?php
-global $IP;
-require_once( "$IP/maintenance/backupPrefetch.inc" );
+
+require_once dirname( __FILE__ ) . "/../../../maintenance/backupPrefetch.inc";
/**
* Tests for BaseDump
<?php
-global $IP;
-require_once( "$IP/maintenance/backup.inc" );
-require_once( "$IP/maintenance/backupTextPass.inc" );
+
+require_once dirname( __FILE__ ) . "/../../../maintenance/backupTextPass.inc";
/**
* Tests for page dumps of BackupDumper
<?php
-global $IP;
-require_once( "$IP/maintenance/fetchText.php" );
+require_once dirname( __FILE__ ) . "/../../../maintenance/fetchText.php";
/**
* Mock for the input/output of FetchText
<?php
-global $IP;
-require_once( "$IP/maintenance/getSlaveServer.php" );
+
+require_once dirname( __FILE__ ) . "/../../../maintenance/getSlaveServer.php";
/**
* Tests for getSlaveServer