Last modified: 2014-04-08 20:28:23 UTC
Created attachment 15054 [details] Changing phpunit version. This attachment shows some errors when trying to run the tests. I tried running phpunit tests on mediawiki-vagrant and got back some errors. I was able to circumvent the problem by installing a different version of PHPUnit: pear install --alldeps pear.phpunit.de/PHPUnit-3.7.2 This worked for me. At the time of writing this bug report, if I installed PHPUnit like this pear install --alldeps phpunit/PHPUnit it would install version 4.0.14 which from what I can understand is quite different from <4.0 versions (also see https://github.com/sebastianbergmann/phpunit/issues/1173 ) With PHPUnit 4.0.14, I get the output in the attached bugreport.txt Note: Altough I was able to reproduce this and fix it inside my local install of mediawiki-vagrant, I am reporting it as a bug/enhancement to Mediawiki since the script in question ./mediawiki/tests/phpunit/install-phpunit.sh , is part of Mediawiki. I've tested this on mediawiki under commit with sha1 23fab68274456f796563a5eac2ab70cb307afe1a . This is dated 05-April-2014
Change 124653 had a related patch set uploaded by Stefan.petrea: Changing PHPUnit to version 3.7.2 https://gerrit.wikimedia.org/r/124653
*** This bug has been marked as a duplicate of bug 58881 ***
As a note, the discussion in 58881 seems to be more focused around refactoring the tests to cope with a newer version of PHPUnit, whereas in this bug, a solution is offered in terms of using an older PHPUnit(old if 2013 is old). Also see http://pear.phpunit.de/feed.xml for further detalis on PHPUnit versions.
Change 124653 abandoned by Stefan.petrea: Changing PHPUnit to version 3.7.2 Reason: abandoned as duplicate of I77be235a . will look more at https://gerrit.wikimedia.org/r/#/c/118997/ which is the prefered way here https://gerrit.wikimedia.org/r/124653