MediaWiki REL1_33
ComposerLockTest.php
Go to the documentation of this file.
1<?php
2
3class ComposerLockTest extends PHPUnit\Framework\TestCase {
4
5 private $lock;
6
7 public function setUp() {
8 parent::setUp();
9 $this->lock = __DIR__ . "/../../../data/composer/composer.lock";
10 }
11
16 public function testGetInstalledDependencies() {
17 $lock = new ComposerLock( $this->lock );
18 $this->assertEquals( [
19 'wikimedia/cdb' => [
20 'version' => '1.0.1',
21 'type' => 'library',
22 'licenses' => [ 'GPL-2.0-only' ],
23 'authors' => [
24 [
25 'name' => 'Tim Starling',
26 'email' => 'tstarling@wikimedia.org',
27 ],
28 [
29 'name' => 'Chad Horohoe',
30 'email' => 'chad@wikimedia.org',
31 ],
32 ],
33 'description' => 'Constant Database (CDB) wrapper library for PHP. ' .
34 'Provides pure-PHP fallback when dba_* functions are absent.',
35 ],
36 'cssjanus/cssjanus' => [
37 'version' => '1.1.1',
38 'type' => 'library',
39 'licenses' => [ 'Apache-2.0' ],
40 'authors' => [],
41 'description' => 'Convert CSS stylesheets between left-to-right and right-to-left.',
42 ],
43 'leafo/lessphp' => [
44 'version' => '0.5.0',
45 'type' => 'library',
46 'licenses' => [ 'MIT', 'GPL-3.0-only' ],
47 'authors' => [
48 [
49 'name' => 'Leaf Corcoran',
50 'email' => 'leafot@gmail.com',
51 'homepage' => 'http://leafo.net',
52 ],
53 ],
54 'description' => 'lessphp is a compiler for LESS written in PHP.',
55 ],
56 'psr/log' => [
57 'version' => '1.0.0',
58 'type' => 'library',
59 'licenses' => [ 'MIT' ],
60 'authors' => [
61 [
62 'name' => 'PHP-FIG',
63 'homepage' => 'http://www.php-fig.org/',
64 ],
65 ],
66 'description' => 'Common interface for logging libraries',
67 ],
68 'oojs/oojs-ui' => [
69 'version' => '0.6.0',
70 'type' => 'library',
71 'licenses' => [ 'MIT' ],
72 'authors' => [],
73 'description' => '',
74 ],
75 'composer/installers' => [
76 'version' => '1.0.19',
77 'type' => 'composer-installer',
78 'licenses' => [ 'MIT' ],
79 'authors' => [
80 [
81 'name' => 'Kyle Robinson Young',
82 'email' => 'kyle@dontkry.com',
83 'homepage' => 'https://github.com/shama',
84 ],
85 ],
86 'description' => 'A multi-framework Composer library installer',
87 ],
88 'mediawiki/translate' => [
89 'version' => '2014.12',
90 'type' => 'mediawiki-extension',
91 'licenses' => [ 'GPL-2.0-or-later' ],
92 'authors' => [
93 [
94 'name' => 'Niklas Laxström',
95 'email' => 'niklas.laxstrom@gmail.com',
96 'role' => 'Lead nitpicker',
97 ],
98 [
99 'name' => 'Siebrand Mazeland',
100 'email' => 's.mazeland@xs4all.nl',
101 'role' => 'Developer',
102 ],
103 ],
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',
107 ],
108 'mediawiki/universal-language-selector' => [
109 'version' => '2014.12',
110 'type' => 'mediawiki-extension',
111 'licenses' => [ 'GPL-2.0-or-later', 'MIT' ],
112 'authors' => [],
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.',
116 ],
117 ], $lock->getInstalledDependencies() );
118 }
119
120}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
testGetInstalledDependencies()
ComposerLock::__construct ComposerLock::getInstalledDependencies.
Reads a composer.lock file and provides accessors to get its hash and what is installed.