MediaWiki
1.30.0
|
This file is PHPUnit autoload file for PhpStorm IDE and other JetBrains IDEs. More...
Go to the source code of this file.
Variables | |
global | $argv = '--wiki' |
global | $IP |
$maintenance = new PHPUnitMaintClass() | |
if(file_exists("$IP/StartProfiler.php")) | $requireOnceGlobalsScope |
$self = $maintenance->getName() | |
$wgProfiler = [] | |
foreach(array_keys( $GLOBALS) as $varName) if(is_readable("$IP/vendor/autoload.php")) if(defined( 'MW_CONFIG_CALLBACK')) | else |
This file is PHPUnit autoload file for PhpStorm IDE and other JetBrains IDEs.
This file should be set in Languages and frameworks > PHP > PhpUnit
select Use Composer autoloader
and set Path to script
to <path to this file>
. After that, tests can be run in PhpStorm using Right-click > Run or Ctrl + Shift + F10
. Also, tests can be run with debugger very easily.
This file basically does almost the same thing as tests/phpunit/phpunit.php
, except that all code is going to be executed inside some function, so some hacks needed to make old code to be executed as if it was executed on top of the execution stack.
PS: Mostly it is copy-paste from phpunit.php
and doMaintenance.php
.
Definition in file autoload.ide.php.
$argv[2] = '--wiki' |
Definition at line 24 of file autoload.ide.php.
Referenced by ParserTestParserHook::dumpHook(), CheckLess::execute(), PHPUnitMaintClass::forceFormatServerArgv(), Maintenance::loadParamsAndArgs(), Maintenance::loadWithArgv(), ParserEditTests::reload(), and ParserTestParserHook::staticTagHook().
Definition at line 40 of file autoload.ide.php.
$maintenance = new PHPUnitMaintClass() |
Definition at line 32 of file autoload.ide.php.
if (file_exists("$IP/StartProfiler.php")) $requireOnceGlobalsScope |
Definition at line 52 of file autoload.ide.php.
$self = $maintenance->getName() |
Definition at line 39 of file autoload.ide.php.
$wgProfiler = [] |
Definition at line 47 of file autoload.ide.php.
foreach (array_keys($GLOBALS) as $varName) if (is_readable("$IP/vendor/autoload.php")) if (defined('MW_CONFIG_CALLBACK')) else |
Definition at line 83 of file autoload.ide.php.