3 class ComposerInstalledTest
extends PHPUnit\Framework\TestCase
{
7 public function setUp() {
9 $this->installed
= __DIR__
. "/../../../data/composer/installed.json";
13 * @covers ComposerInstalled::__construct
14 * @covers ComposerInstalled::getInstalledDependencies
16 public function testGetInstalledDependencies() {
17 $installed = new ComposerInstalled( $this->installed
);
18 $this->assertEquals( [
22 'licenses' => [ 'MIT', 'GPL-3.0-only' ],
25 'name' => 'Leaf Corcoran',
26 'email' => 'leafot@gmail.com',
27 'homepage' => 'http://leafo.net',
30 'description' => 'lessphp is a compiler for LESS written in PHP.',
35 'licenses' => [ 'MIT' ],
39 'homepage' => 'http://www.php-fig.org/',
42 'description' => 'Common interface for logging libraries',
44 'cssjanus/cssjanus' => [
47 'licenses' => [ 'Apache-2.0' ],
50 'description' => 'Convert CSS stylesheets between left-to-right ' .
56 'licenses' => [ 'GPLv2' ],
59 'name' => 'Tim Starling',
60 'email' => 'tstarling@wikimedia.org',
63 'name' => 'Chad Horohoe',
64 'email' => 'chad@wikimedia.org',
67 'description' => 'Constant Database (CDB) wrapper library for PHP. ' .
68 'Provides pure-PHP fallback when dba_* functions are absent.',
70 'sebastian/version' => [
73 'licenses' => [ 'BSD-3-Clause' ],
76 'name' => 'Sebastian Bergmann',
77 'email' => 'sebastian@phpunit.de',
81 'description' => 'Library that helps with managing the version ' .
82 'number of Git-hosted PHP projects',
84 'sebastian/resource-operations' => [
87 'licenses' => [ 'BSD-3-Clause' ],
90 'name' => 'Sebastian Bergmann',
91 'email' => 'sebastian@phpunit.de',
94 'description' => 'Provides a list of PHP built-in functions that ' .
95 'operate on resources',
97 'sebastian/recursion-context' => [
100 'licenses' => [ 'BSD-3-Clause' ],
103 'name' => 'Jeff Welch',
104 'email' => 'whatthejeff@gmail.com',
107 'name' => 'Sebastian Bergmann',
108 'email' => 'sebastian@phpunit.de',
111 'name' => 'Adam Harvey',
112 'email' => 'aharvey@php.net',
115 'description' => 'Provides functionality to recursively process PHP ' .
118 'sebastian/object-reflector' => [
119 'version' => '1.1.1',
121 'licenses' => [ 'BSD-3-Clause' ],
124 'name' => 'Sebastian Bergmann',
125 'email' => 'sebastian@phpunit.de',
128 'description' => 'Allows reflection of object attributes, including ' .
129 'inherited and non-public ones',
131 'sebastian/object-enumerator' => [
132 'version' => '3.0.3',
134 'licenses' => [ 'BSD-3-Clause' ],
137 'name' => 'Sebastian Bergmann',
138 'email' => 'sebastian@phpunit.de',
141 'description' => 'Traverses array structures and object graphs ' .
142 'to enumerate all referenced objects',
144 'sebastian/global-state' => [
145 'version' => '2.0.0',
147 'licenses' => [ 'BSD-3-Clause' ],
150 'name' => 'Sebastian Bergmann',
151 'email' => 'sebastian@phpunit.de',
154 'description' => 'Snapshotting of global state',
156 'sebastian/exporter' => [
157 'version' => '3.1.0',
159 'licenses' => [ 'BSD-3-Clause' ],
162 'name' => 'Jeff Welch',
163 'email' => 'whatthejeff@gmail.com',
166 'name' => 'Volker Dusch',
167 'email' => 'github@wallbash.com',
170 'name' => 'Bernhard Schussek',
171 'email' => 'bschussek@2bepublished.at',
174 'name' => 'Sebastian Bergmann',
175 'email' => 'sebastian@phpunit.de',
178 'name' => 'Adam Harvey',
179 'email' => 'aharvey@php.net',
182 'description' => 'Provides the functionality to export PHP ' .
183 'variables for visualization',
185 'sebastian/environment' => [
186 'version' => '3.1.0',
188 'licenses' => [ 'BSD-3-Clause' ],
191 'name' => 'Sebastian Bergmann',
192 'email' => 'sebastian@phpunit.de',
195 'description' => 'Provides functionality to handle HHVM/PHP ' .
198 'sebastian/diff' => [
199 'version' => '2.0.1',
201 'licenses' => [ 'BSD-3-Clause' ],
204 'name' => 'Kore Nordmann',
205 'email' => 'mail@kore-nordmann.de',
208 'name' => 'Sebastian Bergmann',
209 'email' => 'sebastian@phpunit.de',
212 'description' => 'Diff implementation',
214 'sebastian/comparator' => [
215 'version' => '2.1.1',
217 'licenses' => [ 'BSD-3-Clause' ],
220 'name' => 'Jeff Welch',
221 'email' => 'whatthejeff@gmail.com',
224 'name' => 'Volker Dusch',
225 'email' => 'github@wallbash.com',
228 'name' => 'Bernhard Schussek',
229 'email' => 'bschussek@2bepublished.at',
232 'name' => 'Sebastian Bergmann',
233 'email' => 'sebastian@phpunit.de',
236 'description' => 'Provides the functionality to compare PHP ' .
237 'values for equality',
239 'doctrine/instantiator' => [
240 'version' => '1.1.0',
242 'licenses' => [ 'MIT' ],
245 'name' => 'Marco Pivetta',
246 'email' => 'ocramius@gmail.com',
247 'homepage' => 'http://ocramius.github.com/',
250 'description' => 'A small, lightweight utility to instantiate ' .
251 'objects in PHP without invoking their constructors',
253 'phpunit/php-text-template' => [
254 'version' => '1.2.1',
256 'licenses' => [ 'BSD-3-Clause' ],
259 'name' => 'Sebastian Bergmann',
260 'email' => 'sebastian@phpunit.de',
264 'description' => 'Simple template engine.',
266 'phpunit/phpunit-mock-objects' => [
267 'version' => '5.0.6',
269 'licenses' => [ 'BSD-3-Clause' ],
272 'name' => 'Sebastian Bergmann',
273 'email' => 'sebastian@phpunit.de',
277 'description' => 'Mock Object library for PHPUnit',
279 'phpunit/php-timer' => [
280 'version' => '1.0.9',
282 'licenses' => [ 'BSD-3-Clause' ],
285 'name' => 'Sebastian Bergmann',
286 'email' => 'sb@sebastian-bergmann.de',
290 'description' => 'Utility class for timing',
292 'phpunit/php-file-iterator' => [
293 'version' => '1.4.5',
295 'licenses' => [ 'BSD-3-Clause' ],
298 'name' => 'Sebastian Bergmann',
299 'email' => 'sb@sebastian-bergmann.de',
303 'description' => 'FilterIterator implementation that filters ' .
304 'files based on a list of suffixes.',
306 'theseer/tokenizer' => [
307 'version' => '1.1.0',
309 'licenses' => [ 'BSD-3-Clause' ],
312 'name' => 'Arne Blankerts',
313 'email' => 'arne@blankerts.de',
314 'role' => 'Developer',
317 'description' => 'A small library for converting tokenized PHP ' .
318 'source code into XML and potentially other formats',
320 'sebastian/code-unit-reverse-lookup' => [
321 'version' => '1.0.1',
323 'licenses' => [ 'BSD-3-Clause' ],
326 'name' => 'Sebastian Bergmann',
327 'email' => 'sebastian@phpunit.de',
330 'description' => 'Looks up which function or method a line of ' .
333 'phpunit/php-token-stream' => [
334 'version' => '2.0.2',
336 'licenses' => [ 'BSD-3-Clause' ],
339 'name' => 'Sebastian Bergmann',
340 'email' => 'sebastian@phpunit.de',
343 'description' => 'Wrapper around PHP\'s tokenizer extension.',
345 'phpunit/php-code-coverage' => [
346 'version' => '5.3.0',
348 'licenses' => [ 'BSD-3-Clause' ],
351 'name' => 'Sebastian Bergmann',
352 'email' => 'sebastian@phpunit.de',
356 'description' => 'Library that provides collection, processing, ' .
357 'and rendering functionality for PHP code coverage information.',
359 'webmozart/assert' => [
360 'version' => '1.2.0',
362 'licenses' => [ 'MIT' ],
365 'name' => 'Bernhard Schussek',
366 'email' => 'bschussek@gmail.com',
369 'description' => 'Assertions to validate method input/output with ' .
370 'nice error messages.',
372 'phpdocumentor/reflection-common' => [
373 'version' => '1.0.1',
375 'licenses' => [ 'MIT' ],
378 'name' => 'Jaap van Otterdijk',
379 'email' => 'opensource@ijaap.nl',
382 'description' => 'Common reflection classes used by phpdocumentor to ' .
383 'reflect the code structure',
385 'phpdocumentor/type-resolver' => [
386 'version' => '0.4.0',
388 'licenses' => [ 'MIT' ],
391 'name' => 'Mike van Riel',
392 'email' => 'me@mikevanriel.com',
397 'phpdocumentor/reflection-docblock' => [
398 'version' => '4.2.0',
400 'licenses' => [ 'MIT' ],
403 'name' => 'Mike van Riel',
404 'email' => 'me@mikevanriel.com',
407 'description' => 'With this component, a library can provide support for ' .
408 'annotations via DocBlocks or otherwise retrieve information that ' .
409 'is embedded in a DocBlock.',
411 'phpspec/prophecy' => [
412 'version' => '1.7.3',
414 'licenses' => [ 'MIT' ],
417 'name' => 'Konstantin Kudryashov',
418 'email' => 'ever.zet@gmail.com',
419 'homepage' => 'http://everzet.com',
422 'name' => 'Marcello Duarte',
423 'email' => 'marcello.duarte@gmail.com',
426 'description' => 'Highly opinionated mocking framework for PHP 5.3+',
428 'phar-io/version' => [
429 'version' => '1.0.1',
431 'licenses' => [ 'BSD-3-Clause' ],
434 'name' => 'Arne Blankerts',
435 'email' => 'arne@blankerts.de',
436 'role' => 'Developer',
439 'name' => 'Sebastian Heuer',
440 'email' => 'sebastian@phpeople.de',
441 'role' => 'Developer',
444 'name' => 'Sebastian Bergmann',
445 'email' => 'sebastian@phpunit.de',
446 'role' => 'Developer',
449 'description' => 'Library for handling version information and constraints',
451 'phar-io/manifest' => [
452 'version' => '1.0.1',
454 'licenses' => [ 'BSD-3-Clause' ],
457 'name' => 'Arne Blankerts',
458 'email' => 'arne@blankerts.de',
459 'role' => 'Developer',
462 'name' => 'Sebastian Heuer',
463 'email' => 'sebastian@phpeople.de',
464 'role' => 'Developer',
467 'name' => 'Sebastian Bergmann',
468 'email' => 'sebastian@phpunit.de',
469 'role' => 'Developer',
472 'description' => 'Component for reading phar.io manifest ' .
473 'information from a PHP Archive (PHAR)',
475 'myclabs/deep-copy' => [
476 'version' => '1.7.0',
478 'licenses' => [ 'MIT' ],
481 'description' => 'Create deep copies (clones) of your objects',
483 'phpunit/phpunit' => [
484 'version' => '6.5.5',
486 'licenses' => [ 'BSD-3-Clause' ],
489 'name' => 'Sebastian Bergmann',
490 'email' => 'sebastian@phpunit.de',
494 'description' => 'The PHP Unit Testing framework.',
496 ], $installed->getInstalledDependencies() );