Page MenuHomePhabricator

Odd "Uncaught ConfigException: undefined StatsdServer" after MediaWikiUnitTestCase violations
Open, Needs TriagePublic

Description

Whenever I'm in the middle of converting to MediaWikiUnitTestCase, there useful failure messages along the way that guide the path. But, they often end with the following which (given it's the first thing you see) can be confusing.

ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.8655   15547784   6. PHPUnit\Util\Fileloader::{closure:/var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:24-34}() /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:0
    1.8793   15868912   7. wfLogProfilingData() /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:33
    1.8849   16042144   8. MediaWiki::emitBufferedStatsdData() /var/www/mediawiki/includes/GlobalFunctions.php:1098
    1.8849   16042144   9. GlobalVarConfig->get() /var/www/mediawiki/includes/MediaWiki.php:963

Steps to reproduce:

  1. Change a test from extending MediaWIkiTestCase to extending MediaWikiUnitTestCase.
  2. Run it as phpunit.php path/to/my/ThingTest.php. For example, mediawiki/tests/phpunit$ php phpunit.php includes/resourceloader/ResourceLoaderSkinModuleTest.php

The output is then:

There were 17 failures:

1) ResourceLoaderSkinModuleTest::testGetStyles with data set #0 (array(), '/logo.png', array(array('.mw-wiki-logo { background-im...ng); }')))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.5991   14732360   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.5994   14732360  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.5994   14732360  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.5994   14732360  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.6068   14745768  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

2) ResourceLoaderSkinModuleTest::testGetStyles with data set #1 (array('.example {}'), '/logo.png', array(array('.example {}'), array('.mw-wiki-logo { background-im...ng); }')))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7098   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7099   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7100   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7100   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7101   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

3) ResourceLoaderSkinModuleTest::testGetStyles with data set #2 (array(), array('/logo.png', '/[email protected]', '/[email protected]'), array(array('.mw-wiki-logo { background-im...ng); }'), array('.mw-wiki-logo { background-im...uto; }'), array('.mw-wiki-logo { background-im...uto; }')))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7209   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7210   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7210   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7210   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7211   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

4) ResourceLoaderSkinModuleTest::testGetStyles with data set #3 (array(), array('/logo.png', '/logo.svg'), array(array('.mw-wiki-logo { background-im...ng); }', '.mw-wiki-logo { background-im...uto; }')))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7304   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7305   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7305   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7305   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7306   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

5) ResourceLoaderSkinModuleTest::testIsKnownEmpty
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7390   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7391   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7391   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7391   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7392   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

6) ResourceLoaderSkinModuleTest::testGetLogoData with data set "simple" (array('/w', '/img/default.png', false), '/img/default.png')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7474   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7475   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7475   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7475   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7475   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

7) ResourceLoaderSkinModuleTest::testGetLogoData with data set "default and 2x" (array('/w', '/img/default.png', array('/img/two-x.png')), array('/img/default.png', '/img/two-x.png'))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7579   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7580   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7580   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7580   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7581   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

8) ResourceLoaderSkinModuleTest::testGetLogoData with data set "default and all HiDPIs" (array('/w', '/img/default.png', array('/img/one-point-five.png', '/img/two-x.png')), array('/img/default.png', '/img/one-point-five.png', '/img/two-x.png'))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7685   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7686   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7686   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7686   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7687   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

9) ResourceLoaderSkinModuleTest::testGetLogoData with data set "default and SVG" (array('/w', '/img/default.png', array('/img/vector.svg')), array('/img/default.png', '/img/vector.svg'))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7762   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7763   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7763   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7763   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7764   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

10) ResourceLoaderSkinModuleTest::testGetLogoData with data set "everything" (array('/w', '/img/default.png', array('/img/one-point-five.png', '/img/two-x.png', '/img/vector.svg')), array('/img/default.png', '/img/vector.svg'))
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7848   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7848   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7849   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7849   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7849   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

11) ResourceLoaderSkinModuleTest::testGetLogoData with data set "versioned url" (array('/w', '/w/test.jpg', false, '/w/images'), '/w/test.jpg?edcf2', '/var/www/mediawiki/tests/phpu.../media')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.7932   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.7933   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.7933   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.7933   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.7934   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

12) ResourceLoaderSkinModuleTest::testPreloadLinkHeaders with data set #0 (array('/w', '/img/default.png', array('/img/one-point-five.png', '/img/two-x.png')), 'Link: </img/default.png>;rel=...2dppx)')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.8057   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.8058   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.8058   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.8058   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.8058   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

13) ResourceLoaderSkinModuleTest::testPreloadLinkHeaders with data set #1 (array('/w', '/img/default.png', false), 'Link: </img/default.png>;rel=...=image')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.8147   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.8147   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.8148   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.8148   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.8148   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

14) ResourceLoaderSkinModuleTest::testPreloadLinkHeaders with data set #2 (array('/w', '/img/default.png', array('/img/two-x.png')), 'Link: </img/default.png>;rel=...2dppx)')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.8243   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.8243   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.8244   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.8244   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.8245   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

15) ResourceLoaderSkinModuleTest::testPreloadLinkHeaders with data set #3 (array('/w', '/img/default.png', array('/img/vector.svg')), 'Link: </img/vector.svg>;rel=p...=image')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.8333   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.8334   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.8334   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.8334   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.8335   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

16) ResourceLoaderSkinModuleTest::testPreloadLinkHeaders with data set #4 (array('/w', '/w/test.jpg', false, '/w/images', '/var/www/mediawiki/tests/phpu.../media'), 'Link: </w/test.jpg?edcf2>;rel...=image')
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.8432   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.8433   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.8433   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.8433   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.8434   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

17) ResourceLoaderSkinModuleTest::testValidCovers
PHP Notice:  Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
PHP   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
PHP   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
PHP   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
PHP   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
PHP  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
PHP  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
PHP  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
PHP  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

Notice: Undefined index: _SERVER in /var/www/mediawiki/vendor/phpunit/phpunit/src/Util/Filter.php on line 31

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5988   14732360   6. MediaWikiPHPUnitResultPrinter->printResult() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:551
    1.5991   14732360   7. MediaWikiPHPUnitResultPrinter->printFailures() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:199
    1.5991   14732360   8. MediaWikiPHPUnitResultPrinter->printDefects() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:300
    1.8540   15567784   9. MediaWikiPHPUnitResultPrinter->printDefect() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:243
    1.8541   15567784  10. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:256
    1.8541   15567784  11. MediaWikiPHPUnitResultPrinter->printDefectTrace() /var/www/mediawiki/tests/phpunit/MediaWikiPHPUnitResultPrinter.php:12
    1.8541   15567784  12. PHPUnit\Framework\AssertionFailedError->__toString() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:280
    1.8542   15567864  13. PHPUnit\Util\Filter::getFilteredStacktrace() /var/www/mediawiki/vendor/phpunit/phpunit/src/Framework/Exception.php:69

This unit test needs to be in "tests/phpunit/unit" !

/var/www/mediawiki/tests/phpunit/MediaWikiUnitTestCase.php:41
/var/www/mediawiki/tests/phpunit/phpunit.php:90
/var/www/mediawiki/maintenance/doMaintenance.php:99
/var/www/mediawiki/tests/phpunit/phpunit.php:129

FAILURES!
Tests: 17, Assertions: 17, Failures: 17.
PHP Fatal error:  Uncaught ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php:53
Stack trace:
#0 /var/www/mediawiki/includes/MediaWiki.php(963): GlobalVarConfig->get('StatsdServer')
#1 /var/www/mediawiki/includes/GlobalFunctions.php(1098): MediaWiki::emitBufferedStatsdData(Object(BufferingStatsdDataFactory), Object(GlobalVarConfig))
#2 /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php(33): wfLogProfilingData()
#3 [internal function]: PHPUnit\Util\Fileloader::{closure}()
#4 {main}
  thrown in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195

Fatal error: Uncaught ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195

ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53

Call Stack:
    0.2045     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2276     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    1.0602   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    1.1036   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    1.3138   13811312   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.8655   15547784   6. PHPUnit\Util\Fileloader::{closure:/var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:24-34}() /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:0
    1.8793   15868912   7. wfLogProfilingData() /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:33
    1.8849   16042144   8. MediaWiki::emitBufferedStatsdData() /var/www/mediawiki/includes/GlobalFunctions.php:1098
    1.8849   16042144   9. GlobalVarConfig->get() /var/www/mediawiki/includes/MediaWiki.php:963

Event Timeline

Change 528794 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[mediawiki/core@master] phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase

https://gerrit.wikimedia.org/r/528794

Note that it also happens when the tests pass:

# php phpunit.php unit/includes/resourceloader/ResourceLoaderSkinModuleTest.php 
Using PHP 7.2.15
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

.................                                                 17 / 17 (100%)

You should really fix these slow tests (>50ms)...
 1. 245ms to run ResourceLoaderSkinModuleTest:testGetStyles with data set #0


Time: 1.5 seconds, Memory: 18.00MB

OK (17 tests, 21 assertions)
PHP Fatal error:  Uncaught ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php:53
Stack trace:
#0 /var/www/mediawiki/includes/MediaWiki.php(963): GlobalVarConfig->get('StatsdServer')
#1 /var/www/mediawiki/includes/GlobalFunctions.php(1098): MediaWiki::emitBufferedStatsdData(Object(BufferingStatsdDataFactory), Object(GlobalVarConfig))
#2 /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php(33): wfLogProfilingData()
#3 [internal function]: PHPUnit\Util\Fileloader::{closure}()
#4 {main}
  thrown in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53
PHP Stack trace:
PHP   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/mediawiki/tests/phpunit/phpunit.php:129
PHP   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
PHP   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
PHP   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195

Fatal error: Uncaught ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53

Call Stack:
    0.2030     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2182     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    0.7830   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    0.8101   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    0.9441   13810384   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195

ConfigException: GlobalVarConfig::get: undefined option: 'StatsdServer' in /var/www/mediawiki/includes/config/GlobalVarConfig.php on line 53

Call Stack:
    0.2030     405384   1. {main}() /var/www/mediawiki/tests/phpunit/phpunit.php:0
    0.2182     698456   2. require('/var/www/mediawiki/maintenance/doMaintenance.php') /var/www/mediawiki/tests/phpunit/phpunit.php:129
    0.7830   11285736   3. PHPUnitMaintClass->execute() /var/www/mediawiki/maintenance/doMaintenance.php:99
    0.8101   12085176   4. MediaWikiPHPUnitCommand->run() /var/www/mediawiki/tests/phpunit/phpunit.php:90
    0.9441   13810384   5. MediaWikiTestRunner->doRun() /var/www/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php:195
    1.5005   16849040   6. PHPUnit\Util\Fileloader::{closure:/var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:24-34}() /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:0
    1.5086   17169768   7. wfLogProfilingData() /var/www/mediawiki/tests/phpunit/bootstrap.maintenance.php:33
    1.5119   17342976   8. MediaWiki::emitBufferedStatsdData() /var/www/mediawiki/includes/GlobalFunctions.php:1098
    1.5119   17342976   9. GlobalVarConfig->get() /var/www/mediawiki/includes/MediaWiki.php:963

Hm... I thought these warnings were non-fatal, but it seems they are now causing a regular patch in Gerrit to fail as well.

https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/528807/

Change 528794 merged by jenkins-bot:
[mediawiki/core@master] phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase

https://gerrit.wikimedia.org/r/528794