mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Report typos in package name if no version matches
This commit is contained in:
parent
104e048c07
commit
5d78fa6ce6
3 changed files with 16 additions and 5 deletions
|
@ -75,7 +75,7 @@ class SolverTest extends TestCase
|
|||
} catch (SolverProblemsException $e) {
|
||||
$problems = $e->getProblems();
|
||||
$this->assertEquals(1, count($problems));
|
||||
$this->assertEquals("\n - The requested package b == 1 could not be found.", $problems[0]->getPrettyString());
|
||||
$this->assertEquals("\n - The requested package b could not be found in any version, you most likely did a typo in the package name.", $problems[0]->getPrettyString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue