From d181e320008c2b49fc510e69fd1911d62d36e18c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 23 May 2011 02:23:21 +0200 Subject: [PATCH] Fixed test expectation --- .../Test/DependencyResolver/SolverTest.php | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/DependencyResolver/SolverTest.php b/tests/Composer/Test/DependencyResolver/SolverTest.php index bc03310e4..c1294b94f 100644 --- a/tests/Composer/Test/DependencyResolver/SolverTest.php +++ b/tests/Composer/Test/DependencyResolver/SolverTest.php @@ -51,9 +51,25 @@ class SolverTest extends \PHPUnit_Framework_TestCase $solver = new Solver($policy, $pool, $repoInstalled); $result = $solver->solve($request); - $this->assertTrue($result, 'Request could be solved'); + $expected = array( + array( + 'job' => 'install', + 'package' => $packageA, + ), + array( + 'job' => 'install', + 'package' => $newPackageB, + ), + array( + 'job' => 'update', + 'package' => $packageC, + ), + array( + 'job' => 'remove', + 'package' => $oldPackage, + ), + ); - //$transaction = $solver->getTransaction(); - // assert ... + $this->assertEquals($expected, $result); } }