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:
parent
f31700bf19
commit
dbcdb4a903
1 changed files with 14 additions and 0 deletions
|
@ -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')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue