mediawiki-extensions-Echo/tests/bootstrap.php
Kunal Mehta aaf061c725 build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.ExtraParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: I8401abf121a7413fa191d7bc535e0ddd6cf8c3f7
2017-06-22 14:13:28 +00:00

19 lines
472 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";