From e16c3f0626d43195820b2e442848f73667a8d3b4 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sat, 22 Oct 2011 17:26:42 +0200 Subject: [PATCH] Remove useless test, packages providing different versions aren't alternatives --- .../DependencyResolver/DefaultPolicyTest.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php b/tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php index b294bf93d..1688bb799 100644 --- a/tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php +++ b/tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php @@ -115,26 +115,6 @@ class DefaultPolicyTest extends \PHPUnit_Framework_TestCase $this->assertEquals($expected, $selected); } - public function testSelectNewestProvider() - { - $this->markTestIncomplete(); - - $this->repo->addPackage($packageA = new MemoryPackage('A', '1.0')); - $this->repo->addPackage($packageB = new MemoryPackage('B', '2.0')); - - $packageA->setProvides(array(new Link('A', 'X', new VersionConstraint('==', '2.0'), 'provides'))); - $packageB->setProvides(array(new Link('B', 'X', new VersionConstraint('==', '1.0'), 'provides'))); - - $this->pool->addRepository($this->repo); - - $literals = array(new Literal($packageA, true), new Literal($packageB, true)); - $expected = array(new Literal($packageA, true)); - - $selected = $this->policy->selectPreferedPackages($this->pool, $this->repoInstalled, $literals); - - $this->assertEquals($expected, $selected); - } - public function testPreferNonReplacingFromSameRepo() {