Debian Codegraph @

tests/phpunit/unit/includes/libs/composer/ComposerLockTest.php

raw symbols SCIP
1 <?php
2
3 namespace Wikimedia\Tests\Composer;
4
5 use PHPUnit\Framework\TestCase;
6 use Wikimedia\Composer\ComposerLock;
7
8 /**
9 * @covers \Wikimedia\Composer\ComposerLock
10 */
11 class ComposerLockTest extends TestCase {
12
13 private const LOCK = __DIR__ . '/../../../../data/composer/composer.lock';
14
15 public function testGetInstalledDependencies() {
16 $lock = new ComposerLock( self::LOCK );
17 $this->assertEquals( [
18 'wikimedia/cdb' => [
19 'version' => '1.0.1',
20 'type' => 'library',
21 'licenses' => [ 'GPL-2.0-only' ],
22 'authors' => [
23 [
24 'name' => 'Tim Starling',
25 'email' => '[email protected]',
26 ],
27 [
28 'name' => 'Chad Horohoe',
29 'email' => '[email protected]',
30 ],
31 ],
32 'description' => 'Constant Database (CDB) wrapper library for PHP. ' .
33 'Provides pure-PHP fallback when dba_* functions are absent.',
34 ],
35 'cssjanus/cssjanus' => [
36 'version' => '1.1.1',
37 'type' => 'library',
38 'licenses' => [ 'Apache-2.0' ],
39 'authors' => [],
40 'description' => 'Convert CSS stylesheets between left-to-right and right-to-left.',
41 ],
42 'leafo/lessphp' => [
43 'version' => '0.5.0',
44 'type' => 'library',
45 'licenses' => [ 'MIT', 'GPL-3.0-only' ],
46 'authors' => [
47 [
48 'name' => 'Leaf Corcoran',
49 'email' => '[email protected]',
50 'homepage' => 'http://leafo.net',
51 ],
52 ],
53 'description' => 'lessphp is a compiler for LESS written in PHP.',
54 ],
55 'psr/log' => [
56 'version' => '1.0.0',
57 'type' => 'library',
58 'licenses' => [ 'MIT' ],
59 'authors' => [
60 [
61 'name' => 'PHP-FIG',
62 'homepage' => 'http://www.php-fig.org/',
63 ],
64 ],
65 'description' => 'Common interface for logging libraries',
66 ],
67 'oojs/oojs-ui' => [
68 'version' => '0.6.0',
69 'type' => 'library',
70 'licenses' => [ 'MIT' ],
71 'authors' => [],
72 'description' => '',
73 ],
74 'composer/installers' => [
75 'version' => '1.0.19',
76 'type' => 'composer-installer',
77 'licenses' => [ 'MIT' ],
78 'authors' => [
79 [
80 'name' => 'Kyle Robinson Young',
81 'email' => '[email protected]',
82 'homepage' => 'https://github.com/shama',
83 ],
84 ],
85 'description' => 'A multi-framework Composer library installer',
86 ],
87 'mediawiki/translate' => [
88 'version' => '2014.12',
89 'type' => 'mediawiki-extension',
90 'licenses' => [ 'GPL-2.0-or-later' ],
91 'authors' => [
92 [
93 'name' => 'Niklas Laxström',
94 'email' => '[email protected]',
95 'role' => 'Lead nitpicker',
96 ],
97 [
98 'name' => 'Siebrand Mazeland',
99 'email' => '[email protected]',
100 'role' => 'Developer',
101 ],
102 ],
103 'description' => 'The only standard solution to translate any kind ' .
104 'of text with an avant-garde web interface within MediaWiki, ' .
105 'including your documentation and software',
106 ],
107 'mediawiki/universal-language-selector' => [
108 'version' => '2014.12',
109 'type' => 'mediawiki-extension',
110 'licenses' => [ 'GPL-2.0-or-later', 'MIT' ],
111 'authors' => [],
112 'description' => 'The primary aim is to allow users to select a language ' .
113 'and configure its support in an easy way. ' .
114 'Main features are language selection, input methods and web fonts.',
115 ],
116 ], $lock->getInstalledDependencies() );
117 }
118 }