mediawiki-extensions-Echo/tests/bootstrap.php
James D. Forrester becbea0941 build: Enable phpcs rule 'Squiz.WhiteSpace.LanguageConstructSpacing.Incorrect' and make pass
Change-Id: I9379c18263474ed13921791b920c7b06e58a84ad
2015-10-29 12:56:33 +01:00

20 lines
477 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" );