Last modified: 2014-11-13 18:06:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70696, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68696 - Exception from line 182 of /srv/vagrant/mediawiki/includes/Hooks.php: Invalid callback in hooks for UnitTestsList
Exception from line 182 of /srv/vagrant/mediawiki/includes/Hooks.php: Invalid...
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-27 23:30 UTC by Nemo
Modified: 2014-11-13 18:06 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-07-27 23:30:24 UTC
Some of the extensions in attachment 16052 [details] (where I added all those having UnitTestsList) cause problems:

vagrant@nemobis:/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php
[304050f6] [no req]   Exception from line 182 of /srv/vagrant/mediawiki/includes/Hooks.php: Invalid callback in hooks for UnitTestsList

Backtrace:
#0 /srv/vagrant/mediawiki/includes/GlobalFunctions.php(4031): Hooks::run(string, array, NULL)
#1 /srv/vagrant/mediawiki/tests/phpunit/suites/ExtensionsTestSuite.php(12): wfRunHooks(string, array)
#2 /srv/vagrant/mediawiki/tests/phpunit/suites/ExtensionsTestSuite.php(22): ExtensionsTestSuite->__construct()
#3 [internal function]: ExtensionsTestSuite::suite(string)
#4 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(382): ReflectionMethod->invoke(NULL, string)
#5 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php(912): PHPUnit_Framework_TestSuite->addTestFile(string)
#6 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php(797): PHPUnit_Util_Configuration->getTestSuite(DOMElement, NULL)
#7 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php(657): PHPUnit_Util_Configuration->getTestSuiteConfiguration(NULL)
#8 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php(25): PHPUnit_TextUI_Command->handleArguments(array)
#9 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php(138): MediaWikiPHPUnitCommand->handleArguments(array)
#10 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php(42): PHPUnit_TextUI_Command->run(array, boolean)
#11 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php(160): MediaWikiPHPUnitCommand::main()
#12 {main}

For now running just fine:

vagrant@nemobis:/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php includes
Comment 1 Umherirrender 2014-11-13 18:06:48 UTC
Can you rerun the tests? Because the error message contains now the function name, which is invalid. Maybe with that information it is possible to find the extension. Thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links