mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-11 07:26:29 +00:00
aaf061c725
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
19 lines
472 B
PHP
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";
|