Page MenuHomePhabricator

Fatal error causing phpunit tests to fail
Closed, ResolvedPublic

Description

PHPUnit tests are failing with the following error for this patch: https://gerrit.wikimedia.org/r/#/c/177987/

15:59:14 Fatal error: Class Mock_BagOStuff_dbf9b0e9 contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (BagOStuff::cas) in /srv/deployment/integration/phpunit/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator.php(231) : eval()'d code on line 452

Jenkins console: https://integration.wikimedia.org/ci/job/mwext-TwnMainPage-testextension-zend/9/console

Event Timeline

Jsahleen raised the priority of this task from to Needs Triage.
Jsahleen updated the task description. (Show Details)
Jsahleen subscribed.
Jsahleen set Security to None.
Jsahleen added a subscriber: Nikerabbit.
Legoktm triaged this task as High priority.Feb 11 2015, 5:18 PM
Legoktm edited projects, added MediaWiki-Core-Tests; removed MediaWiki-Core-Team.
Legoktm added a subscriber: aaron.

In mediawiki/core BagOStuff::cas() has been made protected (was public) with 61697bab1 / I3ef82226231f7e03f7493ae042cad22339f4c869 . Update the interface!

gerritbot subscribed.

Change 190206 had a related patch set uploaded (by Nikerabbit):
Use concrete BagOStuff implementation for mock

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

Patch-For-Review

Change 190206 merged by jenkins-bot:
Use concrete BagOStuff implementation for mock

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