mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Add hint in solver exceptions as to what may be wrong
This commit is contained in:
parent
a5f0872152
commit
6573fd3f77
2 changed files with 9 additions and 1 deletions
|
@ -699,7 +699,11 @@ class SolverTest extends TestCase
|
|||
$msg = "\n";
|
||||
$msg .= " Problem 1\n";
|
||||
$msg .= " - Installation request for a -> satisfiable by A 1.0.\n";
|
||||
$msg .= " - A 1.0 requires b >= 2.0 -> no matching package found.\n";
|
||||
$msg .= " - A 1.0 requires b >= 2.0 -> no matching package found.\n\n";
|
||||
$msg .= "Potential causes:\n";
|
||||
$msg .= " - A typo in the package name\n";
|
||||
$msg .= " - The package is not available in a stable-enough version according to your minimum-stability setting\n";
|
||||
$msg .= " see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.\n";
|
||||
$this->assertEquals($msg, $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue