1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add '!=' handling to VersionConstraint::matchSpecific

This commit is contained in:
Alexey Prilipko 2012-06-19 23:37:29 +11:00
parent e130386612
commit 9f08764e9a
2 changed files with 24 additions and 0 deletions

View file

@ -27,6 +27,12 @@ class VersionConstraintTest extends \PHPUnit_Framework_TestCase
array('<=', '2', '>=', '1'),
array('>=', '1', '<=', '2'),
array('==', '2', '>=', '2'),
array('!=', '1', '!=', '1'),
array('!=', '1', '==', '2'),
array('!=', '1', '<', '1'),
array('!=', '1', '<=', '1'),
array('!=', '1', '>', '1'),
array('!=', '1', '>=', '1'),
);
}
@ -53,6 +59,8 @@ class VersionConstraintTest extends \PHPUnit_Framework_TestCase
array('<=', '1', '>=', '2'),
array('>=', '2', '<=', '1'),
array('==', '2', '<', '2'),
array('!=', '1', '==', '1'),
array('==', '1', '!=', '1'),
);
}