1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Prevent seeing dev versions as equal when they are not, fixes #848

This commit is contained in:
Jordi Boggiano 2012-07-11 20:25:22 +02:00
parent 37ef2037cf
commit 2f7130200a
3 changed files with 8 additions and 1 deletions

View file

@ -33,6 +33,7 @@ class VersionConstraintTest extends \PHPUnit_Framework_TestCase
array('!=', '1', '<=', '1'),
array('!=', '1', '>', '1'),
array('!=', '1', '>=', '1'),
array('==', 'dev-foo-bar', '==', 'dev-foo-bar'),
);
}
@ -61,6 +62,7 @@ class VersionConstraintTest extends \PHPUnit_Framework_TestCase
array('==', '2', '<', '2'),
array('!=', '1', '==', '1'),
array('==', '1', '!=', '1'),
array('==', 'dev-foo-dist', '==', 'dev-foo-zist'),
);
}