3 class ComposerLockTest
extends PHPUnit\Framework\TestCase
{
7 public function setUp() {
9 $this->lock
= __DIR__
. "/../../../data/composer/composer.lock";
13 * @covers ComposerLock::__construct
14 * @covers ComposerLock::getInstalledDependencies
16 public function testGetInstalledDependencies() {
17 $lock = new ComposerLock( $this->lock
);
18 $this->assertEquals( [
22 'licenses' => [ 'GPL-2.0-only' ],
25 'name' => 'Tim Starling',
26 'email' => 'tstarling@wikimedia.org',
29 'name' => 'Chad Horohoe',
30 'email' => 'chad@wikimedia.org',
33 'description' => 'Constant Database (CDB) wrapper library for PHP. ' .
34 'Provides pure-PHP fallback when dba_* functions are absent.',
36 'cssjanus/cssjanus' => [
39 'licenses' => [ 'Apache-2.0' ],
41 'description' => 'Convert CSS stylesheets between left-to-right and right-to-left.',
46 'licenses' => [ 'MIT', 'GPL-3.0-only' ],
49 'name' => 'Leaf Corcoran',
50 'email' => 'leafot@gmail.com',
51 'homepage' => 'http://leafo.net',
54 'description' => 'lessphp is a compiler for LESS written in PHP.',
59 'licenses' => [ 'MIT' ],
63 'homepage' => 'http://www.php-fig.org/',
66 'description' => 'Common interface for logging libraries',
71 'licenses' => [ 'MIT' ],
75 'composer/installers' => [
76 'version' => '1.0.19',
77 'type' => 'composer-installer',
78 'licenses' => [ 'MIT' ],
81 'name' => 'Kyle Robinson Young',
82 'email' => 'kyle@dontkry.com',
83 'homepage' => 'https://github.com/shama',
86 'description' => 'A multi-framework Composer library installer',
88 'mediawiki/translate' => [
89 'version' => '2014.12',
90 'type' => 'mediawiki-extension',
91 'licenses' => [ 'GPL-2.0-or-later' ],
94 'name' => 'Niklas Laxström',
95 'email' => 'niklas.laxstrom@gmail.com',
96 'role' => 'Lead nitpicker',
99 'name' => 'Siebrand Mazeland',
100 'email' => 's.mazeland@xs4all.nl',
101 'role' => 'Developer',
104 'description' => 'The only standard solution to translate any kind ' .
105 'of text with an avant-garde web interface within MediaWiki, ' .
106 'including your documentation and software',
108 'mediawiki/universal-language-selector' => [
109 'version' => '2014.12',
110 'type' => 'mediawiki-extension',
111 'licenses' => [ 'GPL-2.0-or-later', 'MIT' ],
113 'description' => 'The primary aim is to allow users to select a language ' .
114 'and configure its support in an easy way. ' .
115 'Main features are language selection, input methods and web fonts.',
117 ], $lock->getInstalledDependencies() );