Allow use of phpunit.phar with MediaWiki's phpunit.php test entry point
authoraddshore <addshorewiki@gmail.com>
Mon, 5 May 2014 16:40:54 +0000 (17:40 +0100)
committerOri.livneh <ori@wikimedia.org>
Sat, 2 Aug 2014 21:41:38 +0000 (21:41 +0000)
commit33ea33f7b6ed196343a7934926a24a0055cb87b2
treee624141c4401abc6e7f465d38484708398872d7f
parent892a992ab870f6b130bdaf75b0d274ab805f8d70
Allow use of phpunit.phar with MediaWiki's phpunit.php test entry point

MediaWiki tends to assume installation of phpunit via PEAR.
Distribution of phpunit via PEAR will eventually be discontinued,
in favor of distribution via PHAR or composer. PEAR installation
of phpunit 4.0 essentially distributes a phar.

https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.0.0

This patch allows phpunit.php to work with a phpunit.phar file,
as long as it's in the include path.  --with-phpunitdir can be used
to add a directory to the include path.

With composer install, no options are needed and it works.

Bug: 58881
Change-Id: Ibac9b36bbb9614d990c697a091947a64c8987d1d
.gitignore
tests/phpunit/phpunit.php