mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
phpstan: update tests/Composer/Test/DependencyResolver/* to level 6 standard (#10242)
This commit is contained in:
parent
8b7e2b600d
commit
a155c076db
4 changed files with 28 additions and 1 deletions
|
@ -1039,12 +1039,18 @@ class SolverTest extends TestCase
|
|||
$this->assertTrue($this->solver->testFlagLearnedPositiveLiteral);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function reposComplete()
|
||||
{
|
||||
$this->repoSet->addRepository($this->repo);
|
||||
$this->repoSet->addRepository($this->repoLocked);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function createSolver()
|
||||
{
|
||||
$io = new NullIO();
|
||||
|
@ -1052,6 +1058,10 @@ class SolverTest extends TestCase
|
|||
$this->solver = new Solver($this->policy, $this->pool, $io);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<array<string, string>> $expected
|
||||
* @return void
|
||||
*/
|
||||
protected function checkSolverResult(array $expected)
|
||||
{
|
||||
$this->createSolver();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue