3 class ComposerLockTest
extends MediaWikiTestCase
{
7 public function setUp() {
10 $this->lock
= "$IP/tests/phpunit/data/composer/composer.lock";
14 * @covers ComposerLock::__construct
15 * @covers ComposerLock::getInstalledDependencies
17 public function testGetInstalledDependencies() {
18 $lock = new ComposerLock( $this->lock
);
19 $this->assertArrayEquals( [
23 'licenses' => [ 'GPL-2.0' ],
26 'name' => 'Tim Starling',
27 'email' => 'tstarling@wikimedia.org',
30 'name' => 'Chad Horohoe',
31 'email' => 'chad@wikimedia.org',
34 'description' => 'Constant Database (CDB) wrapper library for PHP. '.
35 'Provides pure-PHP fallback when dba_* functions are absent.',
37 'cssjanus/cssjanus' => [
40 'licenses' => [ 'Apache-2.0' ],
42 'description' => 'Convert CSS stylesheets between left-to-right and right-to-left.',
47 'licenses' => [ 'MIT', 'GPL-3.0' ],
50 'name' => 'Leaf Corcoran',
51 'email' => 'leafot@gmail.com',
52 'homepage' => 'http://leafo.net',
55 'description' => 'lessphp is a compiler for LESS written in PHP.',
60 'licenses' => [ 'MIT' ],
64 'homepage' => 'http://www.php-fig.org/',
67 'description' => 'Common interface for logging libraries',
72 'licenses' => [ 'MIT' ],
76 'composer/installers' => [
77 'version' => '1.0.19',
78 'type' => 'composer-installer',
79 'licenses' => [ 'MIT' ],
82 'name' => 'Kyle Robinson Young',
83 'email' => 'kyle@dontkry.com',
84 'homepage' => 'https://github.com/shama',
87 'description' => 'A multi-framework Composer library installer',
89 'mediawiki/translate' => [
90 'version' => '2014.12',
91 'type' => 'mediawiki-extension',
92 'licenses' => [ 'GPL-2.0+' ],
95 'name' => 'Niklas Laxström',
96 'email' => 'niklas.laxstrom@gmail.com',
97 'role' => 'Lead nitpicker',
100 'name' => 'Siebrand Mazeland',
101 'email' => 's.mazeland@xs4all.nl',
102 'role' => 'Developer',
105 'description' => 'The only standard solution to translate any kind ' .
106 'of text with an avant-garde web interface within MediaWiki, ' .
107 'including your documentation and software',
109 'mediawiki/universal-language-selector' => [
110 'version' => '2014.12',
111 'type' => 'mediawiki-extension',
112 'licenses' => [ 'GPL-2.0+', 'MIT' ],
114 'description' => 'The primary aim is to allow users to select a language ' .
115 'and configure its support in an easy way. ' .
116 'Main features are language selection, input methods and web fonts.',
118 ], $lock->getInstalledDependencies(), false, true );