1
0
Fork 0
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:
Jordi Boggiano 2012-10-31 18:20:54 +01:00
parent 104e048c07
commit 5d78fa6ce6
3 changed files with 16 additions and 5 deletions

View file

@ -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());
}
}