https://bugzilla.wikimedia.org/show_bug.cgi?id=59759

       Web browser: ---
            Bug ID: 59759
           Summary: Update PHPUnit version check to 3.7
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: Unit tests
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: codeispoe...@adrianlang.de
                CC: has...@free.fr, krinklem...@gmail.com,
                    m...@everybody.org
    Classification: Unclassified
   Mobile Platform: ---

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to