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

Remove weak rules

Since we no longer have suggest/recommend rules and no longer use any update
or feature rules so packages are removed by default, we do not need weak rules
anymore.
This commit is contained in:
Nils Adermann 2012-05-19 21:49:48 +02:00
parent 025581b365
commit dd527a4049
3 changed files with 8 additions and 70 deletions

View file

@ -110,18 +110,6 @@ class RuleTest extends TestCase
$this->assertFalse($rule->isEnabled());
}
public function testSetWeak()
{
$rule = new Rule($this->pool, array(), 'job1', null);
$rule->setWeak(true);
$rule2 = new Rule($this->pool, array(), 'job1', null);
$rule2->setWeak(false);
$this->assertTrue($rule->isWeak());
$this->assertFalse($rule2->isWeak());
}
public function testIsAssertions()
{
$rule = new Rule($this->pool, array(1, 12), 'job1', null);