I prepare an integration script for MediaWiki with PHPStorm (IDE buttons)
<?php require_once __DIR__ . '/bootstrap.php'; require_once __DIR__ . '/../../maintenance/Maintenance.php'; require_once __DIR__ . '/../../maintenance/doMaintenance.php'; TestSetup::snapshotGlobals(); TestSetup::applyInitialConfig(); ExtensionRegistry::getInstance()->setLoadTestClassesAndNamespaces( true ); register_shutdown_function( function () { MediaWikiTestCase::teardownTestDB(); wfLogProfilingData(); } );
But they're a problem:
PHP Notice: Constant MW_ENTRY_POINT already defined in /var/www/mediawiki/maintenance/Maintenance.php on line 25
bootstrap.php and Maintenance.php have same defined constant
So, I must
- copy-paste code from file to custom bootstrap
- or change define const
How is work:
How is configured:

