Index: trunk/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php |
— | — | @@ -6,13 +6,13 @@ |
7 | 7 | * - Upload multipage.tiff when PagedTiffHandler is active |
8 | 8 | */ |
9 | 9 | |
10 | | -try { |
11 | | - require_once( dirname(__FILE__) . '/../../../maintenance/commandLine.inc' ); |
| 10 | +if ( getenv( 'MW_INSTALL_PATH' ) ) { |
| 11 | + $IP = getenv( 'MW_INSTALL_PATH' ); |
| 12 | +} else { |
| 13 | + $IP = dirname( __FILE__ ) . '/../../..'; |
12 | 14 | } |
13 | | -catch(Exception $e) { |
14 | | - require_once( dirname(__FILE__) . '/../../../phase3/maintenance/commandLine.inc' ); |
15 | | -} |
16 | | -// ini_set( 'include_path', get_include_path() . PATH_SEPARATOR . /*$_SERVER['PHP_PEAR_INSTALL_DIR']*/ 'C:\php\pear' ); |
| 15 | +require_once( "$IP/maintenance/commandLine.inc" ); |
| 16 | + |
17 | 17 | // requires PHPUnit 3.4 |
18 | 18 | require_once 'PHPUnit/Framework.php'; |
19 | 19 | |