Page MenuHomePhabricator

Update PHPUnit version check to 3.7
Closed, ResolvedPublic

Description

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)


Version: 1.23.0
Severity: enhancement

Details

Reference
bz59759

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:24 AM
bzimport set Reference to bz59759.

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

Change 105920 merged by jenkins-bot:
Update PHPUnit version check to 3.7.0

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