mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
71c7e02858
* Port Flow Makefile to Echo * Move resources to Resources.php Change-Id: I75e96cc1e51a7768600ffc083550fc94ea9d1e6c
20 lines
476 B
PHP
20 lines
476 B
PHP
<?php
|
|
/**
|
|
* Find the correct path to /tests/phpunit/bootstrap.php in core
|
|
*
|
|
* Takes MW_INSTALL_PATH environment variable into account. This is used by the
|
|
* test suite defined in mfe.suite.xml for MobileFrontend phpunit testing.
|
|
*/
|
|
|
|
$IP = getenv( 'MW_INSTALL_PATH' );
|
|
if ( $IP === false ) {
|
|
if ( realpath( '../..' ) ) {
|
|
$IP = realpath( '../..' );
|
|
} else {
|
|
$IP = dirname( dirname( dirname( __DIR__ ) ) );
|
|
}
|
|
}
|
|
|
|
require_once( $IP . "/tests/phpunit/bootstrap.php" );
|
|
|