tests: Remove use of $IP and MediaWikiTestCase in libs/composer tests
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 22 Jan 2019 04:17:54 +0000 (20:17 -0800)
committerNikerabbit <niklas.laxstrom@gmail.com>
Tue, 22 Jan 2019 08:01:36 +0000 (08:01 +0000)
commitaed9f32e0481563615329818bd875ca99e123769
tree7409b49aa181ce9930be2874f533c22b0c79f133
parente3a736b42d66795e8c69cbc02c86ad3103167244
tests: Remove use of $IP and MediaWikiTestCase in libs/composer tests

Reference the fixture files relatively instead of absolutely,
this is done for most other references to data files as well
I believe.

Use plain arrayEquals(), which seems to suffice here. In PHP 7 at
least, regular == doesn't require the declaration order of the
keys to be the same in order to evaluate to true.

Change-Id: Iddc874ec811f5c960e13d480d70bcb20334cfa1e
tests/phpunit/includes/libs/composer/ComposerInstalledTest.php
tests/phpunit/includes/libs/composer/ComposerJsonTest.php
tests/phpunit/includes/libs/composer/ComposerLockTest.php