1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Add test for circular depths of equal weight

This commit is contained in:
Jordi Boggiano 2022-03-15 12:02:03 +01:00
parent f31700bf19
commit dbcdb4a903
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -99,6 +99,20 @@ class PackageSorterTest extends TestCase
'foo/bar6',
),
),
'circular deps sorted alphabetically if weighted equally' => array(
array(
$this->createPackage('foo/bar1', array('circular/part1')),
$this->createPackage('foo/bar2', array('circular/part2')),
$this->createPackage('circular/part1', array('circular/part2')),
$this->createPackage('circular/part2', array('circular/part1')),
),
array(
'circular/part1',
'circular/part2',
'foo/bar1',
'foo/bar2',
),
),
'equal weight sorted alphabetically' => array(
array(
$this->createPackage('foo/bar10', array('foo/dep')),