123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- [
- {
- "expected": [
- {
- "type" : "required",
- "constraint" : "*",
- "channel" : "pear.php.net",
- "name" : "Foo"
- }
- ],
- "1.0": [
- { "type": "pkg", "rel": "has", "name": "Foo" }
- ],
- "2.0": {
- "required": {
- "package": {
- "name": "Foo",
- "channel": "pear.php.net"
- }
- }
- }
- },
- {
- "expected": [
- {
- "type" : "required",
- "constraint" : ">1.0.0.0",
- "channel" : "pear.php.net",
- "name" : "Foo"
- }
- ],
- "1.0": [
- { "type": "pkg", "rel": "gt", "version": "1.0.0", "name": "Foo" }
- ],
- "2.0": {
- "required": {
- "package": {
- "name": "Foo",
- "channel": "pear.php.net",
- "min": "1.0.0",
- "exclude": "1.0.0"
- }
- }
- }
- },
- {
- "expected": [
- {
- "type" : "conflicts",
- "constraint" : "*",
- "channel" : "pear.php.net",
- "name" : "Foo"
- }
- ],
- "1.0": [
- { "type": "pkg", "rel": "not", "name": "Foo" }
- ],
- "2.0": {
- "required": {
- "package": {
- "name": "Foo",
- "channel": "pear.php.net",
- "conflicts": true
- }
- }
- }
- },
- {
- "expected": [
- {
- "type" : "required",
- "constraint" : ">=1.0.0.0",
- "channel" : "pear.php.net",
- "name" : "Foo"
- },
- {
- "type" : "required",
- "constraint" : "<2.0.0.0",
- "channel" : "pear.php.net",
- "name" : "Foo"
- }
- ],
- "1.0": [
- { "type": "pkg", "rel": "ge", "version": "1.0.0", "name": "Foo" },
- { "type": "pkg", "rel": "lt", "version": "2.0.0", "name": "Foo" }
- ],
- "2.0": {
- "required": {
- "package": [
- {
- "name": "Foo",
- "channel": "pear.php.net",
- "min": "1.0.0"
- },
- {
- "name": "Foo",
- "channel": "pear.php.net",
- "max": "2.0.0",
- "exclude": "2.0.0"
- }
- ]
- }
- }
- },
- {
- "expected": [
- {
- "type" : "required",
- "constraint" : ">=5.3.0.0",
- "channel" : "php",
- "name" : ""
- }
- ],
- "1.0": [
- { "type": "php", "rel": "ge", "version": "5.3"}
- ],
- "2.0": {
- "required": {
- "php": {
- "min": "5.3"
- }
- }
- }
- },
- {
- "expected": [
- {
- "type" : "required",
- "constraint" : "*",
- "channel" : "ext",
- "name" : "xmllib"
- }
- ],
- "1.0": [
- { "type": "ext", "rel": "has", "name": "xmllib"}
- ],
- "2.0": {
- "required": {
- "extension": [
- {
- "name": "xmllib"
- }
- ]
- }
- }
- },
- {
- "expected": [
- {
- "type" : "optional",
- "constraint" : "*",
- "channel" : "ext",
- "name" : "xmllib"
- }
- ],
- "1.0": false,
- "2.0": {
- "optional": {
- "extension": [
- {
- "name": "xmllib"
- }
- ]
- }
- }
- }
- ]
|