2016-02-05 10:39:14 +00:00
|
|
|
--TEST--
|
|
|
|
|
|
|
|
See Github issue #4319 ( github.com/composer/composer/issues/4319 ).
|
|
|
|
|
|
|
|
Present a clear error message when config.platform.php version results in a conflict rule.
|
|
|
|
|
|
|
|
--CONDITION--
|
|
|
|
!defined('HHVM_VERSION')
|
|
|
|
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "a/a", "version": "1.0.0", "require": { "php": "5.5" } }
|
2016-02-05 10:39:14 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2019-01-29 12:27:52 +00:00
|
|
|
"a/a": "~1.0"
|
2016-02-05 10:39:14 +00:00
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"platform": {
|
|
|
|
"php": "5.3"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--RUN--
|
2019-11-08 11:31:26 +00:00
|
|
|
update
|
2016-02-05 10:39:14 +00:00
|
|
|
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
2019-09-07 00:28:40 +00:00
|
|
|
Updating dependencies
|
2016-02-05 10:39:14 +00:00
|
|
|
Your requirements could not be resolved to an installable set of packages.
|
|
|
|
|
|
|
|
Problem 1
|
2020-01-19 22:11:36 +00:00
|
|
|
- Root composer.json requires a/a ~1.0 -> satisfiable by a/a[1.0.0].
|
2020-01-29 21:47:16 +00:00
|
|
|
- a/a 1.0.0 requires php 5.5 -> your php version (5.3; overridden via config.platform, actual: %s) does not satisfy that requirement.
|
2016-02-05 10:39:14 +00:00
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
|
|
|
|
--EXPECT-EXIT-CODE--
|
|
|
|
2
|