1
0
Fork 0
composer/tests/Composer/Test
Helmut Hummel 7c891701e6 Fix package sorting
PackageSorter weighs the importance of a package
by counting how many times it is required by other packages.
This works by calculating the weight for each package name.

However currently the package index of the package array
is currently passed the weigh function, which basically
disables package sorting.

The reason for that is, that a package repository previously
returned the package list as associative array with  package name as keys,
but currently just as an array with integer keys.

Therefore we must extract the package name from the package
before passing it to the weigh function.
2020-05-03 16:31:47 +02:00
..
Autoload Handle provider/replacer packages and avoid checking extensions which are provided by packages, refs #8546 2020-04-24 13:38:50 +02:00
Command Fix build 2020-02-11 11:41:31 +01:00
Config Fixes from PHPStan (#7687) 2018-11-12 15:23:32 +01:00
Console PHPStan fixes 2020-02-07 23:10:10 +01:00
DependencyResolver Tweak problem wording slightly 2020-04-23 13:17:34 +02:00
Downloader Remove PEAR installer/downloader/repos/..., fixes #8778 2020-04-15 00:24:13 +02:00
EventDispatcher Replace pre/post-dependencies-solving by a pre-operations-exec event happening only on install from lock 2020-02-12 14:35:31 +01:00
Fixtures Fix tests 2020-04-24 09:07:32 +02:00
IO feat(buffer-io): add the possibility to set user inputs for interactive questions 2019-01-05 11:59:33 +01:00
Installer Fix tests 2020-04-23 10:29:22 +02:00
Json Add package naming pattern to the composer.json JSON schema 2020-04-15 13:43:05 +02:00
Mock Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
Package Merge branch '1.10' 2020-04-30 21:31:29 +02:00
Plugin Refactor away some unnecessary RepositorySet usages 2020-02-13 17:51:22 +01:00
Question use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
Repository Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
Script Fix indenting 2019-07-29 16:44:50 +02:00
Util Fix package sorting 2020-05-03 16:31:47 +02:00
AllFunctionalTest.php Make usage of foreach to improve readability 2019-07-24 02:39:40 +02:00
ApplicationTest.php do not use env 2020-02-07 13:07:01 +08:00
CacheTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
ComposerTest.php Add parallel download capability to FileDownloader and derivatives 2019-01-18 08:39:03 +01:00
ConfigTest.php fix risky tests (without any assertion) 2020-02-07 14:35:07 +08:00
DefaultConfigTest.php Fixes from PHPStan (#7687) 2018-11-12 15:23:32 +01:00
FactoryTest.php Fix factory test 2019-01-14 17:29:23 +01:00
InstalledVersionsTest.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
InstallerTest.php Fix tests 2020-04-24 09:07:32 +02:00
TestCase.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00