mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix warnings on higher phpunit versions
This commit is contained in:
parent
bb96b04f4a
commit
1593b67230
29 changed files with 854 additions and 143 deletions
|
@ -63,13 +63,11 @@ class RuleSetTest extends TestCase
|
|||
$this->assertCount(1, $ruleSet->getIteratorFor(array(RuleSet::TYPE_REQUEST)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OutOfBoundsException
|
||||
*/
|
||||
public function testAddWhenTypeIsNotRecognized()
|
||||
{
|
||||
$ruleSet = new RuleSet;
|
||||
|
||||
$this->setExpectedException('OutOfBoundsException');
|
||||
$ruleSet->add(new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, null), 7);
|
||||
}
|
||||
|
||||
|
@ -152,6 +150,6 @@ class RuleSetTest extends TestCase
|
|||
|
||||
$ruleSet->add($rule, RuleSet::TYPE_REQUEST);
|
||||
|
||||
$this->assertContains('REQUEST : No package found to satisfy root composer.json require foo/bar', $ruleSet->getPrettyString($repositorySetMock, $requestMock, $pool));
|
||||
$this->assertStringContainsString('REQUEST : No package found to satisfy root composer.json require foo/bar', $ruleSet->getPrettyString($repositorySetMock, $requestMock, $pool));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue