1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Decisions are now encapsulated in a separate object

This commit is contained in:
Nils Adermann 2012-06-04 23:19:32 +02:00
parent 99e3cad0b5
commit 26e051cb76
6 changed files with 337 additions and 242 deletions

View file

@ -291,15 +291,16 @@ class SolverTest extends TestCase
$this->request->update('A', $this->getVersionConstraint('=', '1.0.0.0'));
$this->checkSolverResult(array(
array(
'job' => 'remove',
'package' => $packageB,
),
array(
'job' => 'update',
'from' => $packageA,
'to' => $newPackageA,
)));
),
array(
'job' => 'remove',
'package' => $packageB,
),
));
}
public function testSolverAllJobs()
@ -324,8 +325,8 @@ class SolverTest extends TestCase
$this->checkSolverResult(array(
array('job' => 'update', 'from' => $oldPackageC, 'to' => $packageC),
array('job' => 'install', 'package' => $packageB),
array('job' => 'remove', 'package' => $packageD),
array('job' => 'install', 'package' => $packageA),
array('job' => 'remove', 'package' => $packageD),
));
}