Last modified: 2014-04-08 20:28:23 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 T65690, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63690 - changing phpunit version
changing phpunit version
Status: RESOLVED DUPLICATE of bug 58881
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-08 18:02 UTC by Stefan Petrea
Modified: 2014-04-08 20:28 UTC (History)
4 users (show)

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


Attachments
Changing phpunit version. This attachment shows some errors when trying to run the tests. (1.29 KB, text/plain)
2014-04-08 18:02 UTC, Stefan Petrea
Details

Description Stefan Petrea 2014-04-08 18:02:08 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
Comment 1 Gerrit Notification Bot 2014-04-08 18:02:48 UTC
Change 124653 had a related patch set uploaded by Stefan.petrea:
Changing PHPUnit to version 3.7.2

https://gerrit.wikimedia.org/r/124653
Comment 2 Kevin Israel (PleaseStand) 2014-04-08 18:08:06 UTC

*** This bug has been marked as a duplicate of bug 58881 ***
Comment 3 Stefan Petrea 2014-04-08 18:17:48 UTC
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.
Comment 4 Gerrit Notification Bot 2014-04-08 20:28:23 UTC
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

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


Navigation
Links