Last modified: 2014-01-07 10:53:59 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 T61759, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59759 - Update PHPUnit version check to 3.7
Update PHPUnit version check to 3.7
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.23.0
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Adrian Lang
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-07 09:27 UTC by Adrian Lang
Modified: 2014-01-07 10:53 UTC (History)
3 users (show)

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


Attachments

Description Adrian Lang 2014-01-07 09:27:45 UTC
When running the tests with PHPUnit 3.6.10 installed, the following error occurs:

PHP Fatal error:  Call to undefined method DataTypes\Tests\Phpunit\DataTypeTest::assertContainsOnlyInstancesOf() in /home/adrian/htdocs/wikibase-repo/extensions/DataTypes/tests/Phpunit/DataTypeTest.php on line 64
PHP Stack trace:
PHP   1. {main}() /home/adrian/htdocs/wikibase-repo/tests/phpunit/phpunit.php:0
PHP   2. MediaWikiPHPUnitCommand::main() /home/adrian/htdocs/wikibase-repo/tests/phpunit/phpunit.php:119
PHP   3. MediaWikiPHPUnitCommand->run() /home/adrian/htdocs/wikibase-repo/tests/phpunit/MediaWikiPHPUnitCommand.php:64
PHP   4. PHPUnit_TextUI_Command->run() /home/adrian/htdocs/wikibase-repo/tests/phpunit/MediaWikiPHPUnitCommand.php:80
PHP   5. PHPUnit_TextUI_TestRunner->doRun() /usr/share/php/PHPUnit/TextUI/Command.php:192
PHP   6. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:325
PHP   7. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705
PHP   8. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705
PHP   9. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705
PHP  10. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705
PHP  11. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:745
PHP  12. PHPUnit_Framework_TestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:772
PHP  13. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:751
PHP  14. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:649
PHP  15. PHPUnit_Framework_TestCase->runTest() /usr/share/php/PHPUnit/Framework/TestCase.php:804
PHP  16. ReflectionMethod->invokeArgs() /usr/share/php/PHPUnit/Framework/TestCase.php:942
PHP  17. DataTypes\Tests\Phpunit\DataTypeTest->testGetValidators() /usr/share/php/PHPUnit/Framework/TestCase.php:942

assertContainsOnlyInstancesOf has been added in PHPUnit 3.7.0 (https://github.com/sebastianbergmann/phpunit/commit/ac4b6a9dcf54a592b6bd6f6a8166a8720409ba0f)
Comment 1 Gerrit Notification Bot 2014-01-07 09:35:34 UTC
Change 105920 had a related patch set uploaded by Adrian Lang:
Update PHPUnit version check to 3.7.0

https://gerrit.wikimedia.org/r/105920
Comment 2 Gerrit Notification Bot 2014-01-07 10:38:57 UTC
Change 105920 merged by jenkins-bot:
Update PHPUnit version check to 3.7.0

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

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


Navigation
Links