mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Version Parsing: Consider <x.y.z to be <x.y.z-dev
> Consider `<x.y.z` to be `<x.y.z-dev.` Because in 99% > of the cases that's what the intent is. Could be > overriden with `<x.y.z-stable`. - @Seldaek refs #643
This commit is contained in:
parent
62bb5b339b
commit
081ead1635
2 changed files with 10 additions and 2 deletions
|
@ -195,7 +195,7 @@ class VersionParserTest extends \PHPUnit_Framework_TestCase
|
|||
'not equal' => array('<>1.0.0', new VersionConstraint('<>', '1.0.0.0')),
|
||||
'not equal/2' => array('!=1.0.0', new VersionConstraint('!=', '1.0.0.0')),
|
||||
'greater than' => array('>1.0.0', new VersionConstraint('>', '1.0.0.0')),
|
||||
'lesser than' => array('<1.2.3.4', new VersionConstraint('<', '1.2.3.4')),
|
||||
'lesser than' => array('<1.2.3.4', new VersionConstraint('<', '1.2.3.4-dev')),
|
||||
'less/eq than' => array('<=1.2.3', new VersionConstraint('<=', '1.2.3.0')),
|
||||
'great/eq than' => array('>=1.2.3', new VersionConstraint('>=', '1.2.3.0')),
|
||||
'equals' => array('=1.2.3', new VersionConstraint('=', '1.2.3.0')),
|
||||
|
@ -209,6 +209,7 @@ class VersionParserTest extends \PHPUnit_Framework_TestCase
|
|||
'regression #550' => array('dev-some-fix', new VersionConstraint('=', 'dev-some-fix')),
|
||||
'regression #935' => array('dev-CAPS', new VersionConstraint('=', 'dev-CAPS')),
|
||||
'ignores aliases' => array('dev-master as 1.0.0', new VersionConstraint('=', '9999999-dev')),
|
||||
'lesser than override' => array('<1.2.3.4-stable', new VersionConstraint('<', '1.2.3.4')),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue