Added release notes for 'ContentHandler::runLegacyHooks' removal
[mediawiki.git] / tests / phpunit / includes / libs / composer / ComposerLockTest.php
blobeef7e274a23a3b34c5c5d2d9d467b1b890077c9a
1 <?php
3 class ComposerLockTest extends MediaWikiTestCase {
5 private $lock;
7 public function setUp() {
8 parent::setUp();
9 global $IP;
10 $this->lock = "$IP/tests/phpunit/data/composer/composer.lock";
13 /**
14 * @covers ComposerLock::__construct
15 * @covers ComposerLock::getInstalledDependencies
17 public function testGetInstalledDependencies() {
18 $lock = new ComposerLock( $this->lock );
19 $this->assertArrayEquals( [
20 'wikimedia/cdb' => [
21 'version' => '1.0.1',
22 'type' => 'library',
23 'licenses' => [ 'GPL-2.0' ],
24 'authors' => [
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' => [
38 'version' => '1.1.1',
39 'type' => 'library',
40 'licenses' => [ 'Apache-2.0' ],
41 'authors' => [],
42 'description' => 'Convert CSS stylesheets between left-to-right and right-to-left.',
44 'leafo/lessphp' => [
45 'version' => '0.5.0',
46 'type' => 'library',
47 'licenses' => [ 'MIT', 'GPL-3.0' ],
48 'authors' => [
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.',
57 'psr/log' => [
58 'version' => '1.0.0',
59 'type' => 'library',
60 'licenses' => [ 'MIT' ],
61 'authors' => [
63 'name' => 'PHP-FIG',
64 'homepage' => 'http://www.php-fig.org/',
67 'description' => 'Common interface for logging libraries',
69 'oojs/oojs-ui' => [
70 'version' => '0.6.0',
71 'type' => 'library',
72 'licenses' => [ 'MIT' ],
73 'authors' => [],
74 'description' => '',
76 'composer/installers' => [
77 'version' => '1.0.19',
78 'type' => 'composer-installer',
79 'licenses' => [ 'MIT' ],
80 'authors' => [
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+' ],
93 'authors' => [
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' ],
113 'authors' => [],
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 );