Page MenuHomePhabricator

MediaWiki 1.26.0 tarball has outdated "tests" subdirectory
Closed, InvalidPublic

Description

The contents of the "tests" subdirectory in the MediaWiki 1.26.0 tarball are not current. The tests/phpunit/phpunit.php file does not include phar support, for example, which was implemented in 2014:

https://phabricator.wikimedia.org/rMW33ea33f7b6ed196343a7934926a24a0055cb87b2

As a result, any use of tests/phpunit/phpunit.php produces this error message:

PHP Fatal error: Class 'SebastianBergmann\Version' not found in /usr/share/php/PHPUnit/Runner/Version.php on line 74
PHP Stack trace:
PHP 1. {main}() tests/phpunit/phpunit.php:0
PHP 2. PHPUnit_Runner_Version::id() tests/phpunit/phpunit.php:108

Event Timeline

maiden_taiwan raised the priority of this task from to Needs Triage.
maiden_taiwan updated the task description. (Show Details)
maiden_taiwan subscribed.
Legoktm set Security to None.
Legoktm added a subscriber: demon.

rMW33ea33f says it's included in REL1_26. Was there a followup change in master and also in REL1_26 that broke it? REL1_26 was branched from master and git log master..REL1_26 -- tests/phpunit/ shows only one commit that was backported and didn't touch phpunit.php

Hold on....

I just rechecked the tarball for 1.26.0. It contains the latest phpunit code. Something must have gone wrong on my end when I unpacked it.

Apologies for the bogus bug report. This ticket may be closed.

maiden_taiwan claimed this task.

Apologies for the bogus bug report. This ticket may be closed.

No worries. It is better than wondering for a few days what is going on. There are no dumb questions :-}