|
@@ -34,6 +34,12 @@ class VersionConstraintTest extends \PHPUnit_Framework_TestCase
|
|
|
array('!=', '1', '>', '1'),
|
|
|
array('!=', '1', '>=', '1'),
|
|
|
array('==', 'dev-foo-bar', '==', 'dev-foo-bar'),
|
|
|
+ array('==', 'dev-foo-xyz', '==', 'dev-foo-xyz'),
|
|
|
+ array('>=', 'dev-foo-bar', '>=', 'dev-foo-xyz'),
|
|
|
+ array('<=', 'dev-foo-bar', '<', 'dev-foo-xyz'),
|
|
|
+ array('!=', 'dev-foo-bar', '<', 'dev-foo-xyz'),
|
|
|
+ array('>=', 'dev-foo-bar', '!=', 'dev-foo-bar'),
|
|
|
+ array('!=', 'dev-foo-bar', '!=', 'dev-foo-xyz'),
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -63,6 +69,9 @@ class VersionConstraintTest extends \PHPUnit_Framework_TestCase
|
|
|
array('!=', '1', '==', '1'),
|
|
|
array('==', '1', '!=', '1'),
|
|
|
array('==', 'dev-foo-dist', '==', 'dev-foo-zist'),
|
|
|
+ array('==', 'dev-foo-bist', '==', 'dev-foo-aist'),
|
|
|
+ array('<=', 'dev-foo-bist', '>=', 'dev-foo-aist'),
|
|
|
+ array('>=', 'dev-foo-bist', '<', 'dev-foo-aist'),
|
|
|
);
|
|
|
}
|
|
|
|