Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added addLink and removeLink to Configuration Source Interface
* Added addLink() and removeLink() to `ConfigSourceInterface` * Added addLink() and removeLink() implementations to `JsonConfigSource` * Added tests (+ a ton of fixtures) for `JsonConfigSource` * Added additional docblocks * Minor PSR-1/PSR-2 fixes here and there
- Loading branch information
Showing
48 changed files
with
1,069 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/Composer/Test/Config/Fixtures/addLink/conflict-from-empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"conflict": { | ||
"my-vend/my-old-app": "1.*" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Composer/Test/Config/Fixtures/addLink/conflict-from-oneOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*", | ||
"my-vend/my-old-app": "1.*" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/Composer/Test/Config/Fixtures/addLink/conflict-from-twoOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*", | ||
"my-vend/my-yet-another-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*", | ||
"my-vend/my-yet-another-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*", | ||
"my-vend/my-yet-another-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*", | ||
"my-vend/my-yet-another-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*", | ||
"other-vend/yet-another-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*", | ||
"my-vend/my-yet-another-old-app": "1.*", | ||
"my-vend/my-old-app": "1.*" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/Composer/Test/Config/Fixtures/addLink/provide-from-empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"provide": { | ||
"my-vend/my-lib-interface": "1.*" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Composer/Test/Config/Fixtures/addLink/provide-from-oneOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*", | ||
"my-vend/my-lib-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/Composer/Test/Config/Fixtures/addLink/provide-from-twoOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*", | ||
"my-vend/my-yet-another-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*", | ||
"my-vend/my-yet-another-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*", | ||
"my-vend/my-yet-another-interface": "1.*", | ||
"my-vend/my-lib-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*", | ||
"my-vend/my-yet-another-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*", | ||
"other-vend/yet-another-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*", | ||
"my-vend/my-yet-another-old-app": "1.*" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/Composer/Test/Config/Fixtures/addLink/replace-from-empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"replace": { | ||
"my-vend/other-app": "1.*" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Composer/Test/Config/Fixtures/addLink/replace-from-oneOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*", | ||
"my-vend/other-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/Composer/Test/Config/Fixtures/addLink/replace-from-twoOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*", | ||
"my-vend/my-yet-another-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*", | ||
"my-vend/my-yet-another-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*", | ||
"my-vend/my-yet-another-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*", | ||
"my-vend/my-yet-another-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*", | ||
"other-vend/yet-another-app": "1.*", | ||
"my-vend/other-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*", | ||
"my-vend/my-yet-another-old-app": "1.*" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/Composer/Test/Config/Fixtures/addLink/require-dev-from-empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require-dev": { | ||
"my-vend/my-lib-tests": "1.*" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Composer/Test/Config/Fixtures/addLink/require-dev-from-oneOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*", | ||
"my-vend/my-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/Composer/Test/Config/Fixtures/addLink/require-dev-from-twoOfEverything.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "my-vend/my-app", | ||
"license": "MIT", | ||
"require": { | ||
"my-vend/my-other-lib": "1.*", | ||
"my-vend/my-yet-another-lib": "1.*" | ||
}, | ||
"require-dev": { | ||
"my-vend/my-other-lib-tests": "1.*", | ||
"my-vend/my-yet-another-lib-tests": "1.*", | ||
"my-vend/my-lib-tests": "1.*" | ||
}, | ||
"provide": { | ||
"my-vend/my-other-interface": "1.*", | ||
"my-vend/my-yet-another-interface": "1.*" | ||
}, | ||
"suggest": { | ||
"my-vend/my-other-optional-extension": "1.*", | ||
"my-vend/my-yet-another-optional-extension": "1.*" | ||
}, | ||
"replace": { | ||
"other-vend/other-app": "1.*", | ||
"other-vend/yet-another-app": "1.*" | ||
}, | ||
"conflict": { | ||
"my-vend/my-other-old-app": "1.*", | ||
"my-vend/my-yet-another-old-app": "1.*" | ||
} | ||
} |
Oops, something went wrong.