mwscript /vagrant/mediawiki/tests/phpunit/phpunit.php --wiki=wiki /vagrant/mediawiki/extensions/SomeUnrelatedExtension #!/usr/bin/env php Using PHP 7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b+wmf1 PHPUnit 8.5.13 by Sebastian Bergmann and contributors. HTTP requests to http://eventgate.local.wmftest.net:22100/v1/events blocked. Use MockHttpTrait.
Replacing the AssertionFailedError in NullHttpRequestFactory (see T262443: Do not hit actual urls during phpunit tests) with some other exception that does not get broken special handling, the trace is:
Exception from line 29 of /vagrant/mediawiki/tests/phpunit/mocks/NullMultiHttpClient.php: ... #0 /vagrant/mediawiki/extensions/EventBus/includes/EventBus.php(244): NullMultiHttpClient->runMulti(Array, Array) #1 /vagrant/mediawiki/extensions/EventBus/includes/EventBusHooks.php(338): MediaWiki\Extension\EventBus\EventBus->send(Array) #2 /vagrant/mediawiki/includes/deferred/MWCallableUpdate.php(38): MediaWiki\Extension\EventBus\EventBusHooks::MediaWiki\Extension\EventBus\{closure}() #3 /vagrant/mediawiki/includes/deferred/DeferredUpdates.php(467): MWCallableUpdate->doUpdate() #4 /vagrant/mediawiki/includes/deferred/DeferredUpdates.php(344): DeferredUpdates::attemptUpdate(Object(MWCallableUpdate), Object(Wikimedia\Rdbms\LBFactorySimple)) #5 /vagrant/mediawiki/includes/deferred/DeferredUpdates.php(288): DeferredUpdates::run(Object(MWCallableUpdate), Object(Wikimedia\Rdbms\LBFactorySimple), Object(Monolog\Logger), Object(BufferingStatsdDataFactory), 'cli') #6 /vagrant/mediawiki/includes/deferred/DeferredUpdates.php(190): DeferredUpdates::handleUpdateQueue(Array, 'run', 2) #7 /vagrant/mediawiki/includes/deferred/DeferredUpdates.php(491): DeferredUpdates::doUpdates('run') #8 /vagrant/mediawiki/includes/deferred/DeferredUpdates.php(131): DeferredUpdates::tryOpportunisticExecute('run') #9 /vagrant/mediawiki/includes/Storage/PageUpdater.php(1319): DeferredUpdates::addUpdate(Object(AtomicSectionUpdate), 1) #10 /vagrant/mediawiki/includes/Storage/PageUpdater.php(803): MediaWiki\Storage\PageUpdater->doCreate(Object(CommentStoreComment), Object(User), 9) #11 /vagrant/mediawiki/includes/page/WikiPage.php(2041): MediaWiki\Storage\PageUpdater->saveRevision(Object(CommentStoreComment), 9) #12 /vagrant/mediawiki/includes/page/WikiPage.php(1893): WikiPage->doUserEditContent(Object(WikitextContent), Object(User), Object(CommentStoreComment), 9, false, Array, 0) #13 /vagrant/mediawiki/tests/phpunit/MediaWikiIntegrationTestCase.php(1413): WikiPage->doEditContent(Object(WikitextContent), 'UTPageSummary', 9, false, Object(User)) #14 /vagrant/mediawiki/tests/phpunit/MediaWikiIntegrationTestCase.php(421): MediaWikiIntegrationTestCase->addCoreDBData() #15 /vagrant/mediawiki/vendor/phpunit/phpunit/src/Framework/TestSuite.php(601): MediaWikiIntegrationTestCase->run(Object(PHPUnit\Framework\TestResult)) #16 /vagrant/mediawiki/vendor/phpunit/phpunit/src/Framework/TestSuite.php(601): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult)) #17 /vagrant/mediawiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(633): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult)) #18 /vagrant/mediawiki/vendor/phpunit/phpunit/src/TextUI/Command.php(204): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, Array, true) #19 /vagrant/mediawiki/tests/phpunit/phpunit.php(75): PHPUnit\TextUI\Command->run(Array, true) #20 /vagrant/mediawiki/maintenance/doMaintenance.php(106): PHPUnitMaintClass->execute() #21 /vagrant/mediawiki/tests/phpunit/phpunit.php(134): require('/vagrant/mediaw...') #22 /var/www/w/MWScript.php(98): require_once('/vagrant/mediaw...') #23 {main}