Tests: Allow vendor/bin/phpunit from within extension directory
authorKosta Harlan <kharlan@wikimedia.org>
Wed, 14 Aug 2019 08:25:01 +0000 (10:25 +0200)
committerKosta Harlan <kharlan@wikimedia.org>
Wed, 14 Aug 2019 08:30:25 +0000 (10:30 +0200)
commited92fc2103e3921ed138190ef794a422917f1a2a
tree265289053e9b10c7c2d699e5cc34fd4b4e51a90d
parent8383f34041dd62441a2635574dc96a3f71d167ac
Tests: Allow vendor/bin/phpunit from within extension directory

Prior to this patch, one could not run this command from within an extension
directory: `../../vendor/bin/phpunit -c ../../phpunit.xml.dist tests/phpunit`,
because our code in bootstrap.php loaded "LocalSettings.php" instead of
$IP/LocalSettings.php.

Note that making this change does not result in loading LocalSettings.php when
running unit tests.

Bug: T87781
Change-Id: Iee8440f11a2bb255567646289a1986d636c12765
tests/phpunit/bootstrap.php