diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsEmpty/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsEmpty/normalized.json new file mode 100644 index 00000000..6c20c316 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsEmpty/normalized.json @@ -0,0 +1 @@ +{"conflict":{},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsEmpty/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsEmpty/original.json new file mode 100644 index 00000000..018d5caf --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsEmpty/original.json @@ -0,0 +1,7 @@ +{ + "conflict": {}, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsMissing/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsMissing/original.json new file mode 100644 index 00000000..6a6348ad --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsMissing/original.json @@ -0,0 +1,6 @@ +{ + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsPresent/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsPresent/normalized.json new file mode 100644 index 00000000..afe0212d --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsPresent/normalized.json @@ -0,0 +1 @@ +{"conflict":{"branch\/main":"dev-main","branch\/main-referencing-commit":"dev-main#bf2eeff","branch\/main-referencing-commit-untrimmed":"dev-main#bf2eeff","branch\/main-untrimmed":"dev-main","branch\/my-feature":"dev-my-feature","branch\/my-feature-untrimmed":"dev-my-feature","exact\/major":"1","exact\/major-minor":"1.2","exact\/major-minor-patch":"1.2.3","exact\/major-minor-patch-untrimmed":"1.2.3","exact\/major-minor-untrimmed":"1.2","exact\/major-untrimmed":"1","version-range\/caret-major":"^1","version-range\/caret-major-minor":"^1.2","version-range\/caret-major-minor-patch":"^1.2.3","version-range\/caret-major-minor-patch-untrimmed":"^1.2.3","version-range\/caret-major-minor-untrimmed":"^1.2","version-range\/caret-major-untrimmed":"^1","version-range\/hyphen-surrounded-by-space-double":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-double-untrimmed":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single-untrimmed":"1.0 - 2.0","version-range\/lower":">=1.0","version-range\/lower-and-upper-with-comma":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower":">=1.0,<1.1 || || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-space-double":">=1.0 <2.0","version-range\/lower-and-upper-with-space-double-untrimmed":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single-or-lower":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-or-lower-untrimmed":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-untrimmed":">=1.0 <2.0","version-range\/lower-untrimmed":">=1.0","version-range\/tilde-major":"~1","version-range\/tilde-major-minor":"~1.2","version-range\/tilde-major-minor-patch":"~1.2.3","version-range\/tilde-major-minor-patch-untrimmed":"~1.2.3","version-range\/tilde-major-minor-untrimmed":"~1.2","version-range\/tilde-major-untrimmed":"~1","version-range\/upper":"<2.0","version-range\/upper-untrimmed":"<2.0"},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsPresent/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsPresent/original.json new file mode 100644 index 00000000..693b560e --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Conflict/IsPresent/original.json @@ -0,0 +1,60 @@ +{ + "conflict": { + "branch/main": "dev-main", + "branch/main-referencing-commit": "dev-main#bf2eeff", + "branch/main-referencing-commit-untrimmed": "dev-main#bf2eeff", + "branch/main-untrimmed": " dev-main ", + "branch/my-feature": "dev-my-feature", + "branch/my-feature-untrimmed": " dev-my-feature ", + "exact/major": "1", + "exact/major-minor": "1.2", + "exact/major-minor-patch": "1.2.3", + "exact/major-minor-patch-untrimmed": " 1.2.3 ", + "exact/major-minor-untrimmed": " 1.2 ", + "exact/major-untrimmed": " 1 ", + "version-range/caret-major":"^1", + "version-range/caret-major-minor":"^1.2", + "version-range/caret-major-minor-patch":"^1.2.3", + "version-range/caret-major-minor-patch-untrimmed":" ^1.2.3 ", + "version-range/caret-major-minor-untrimmed":" ^1.2 ", + "version-range/caret-major-untrimmed":" ^1 ", + "version-range/hyphen-surrounded-by-space-double": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-double-untrimmed": " 1.0 - 2.0 ", + "version-range/hyphen-surrounded-by-space-single": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-single-untrimmed": " 1.0 - 2.0 ", + "version-range/lower": ">=1.0", + "version-range/lower-and-upper-with-comma": ">=1.0,<2.0", + "version-range/lower-and-upper-with-comma-or-lower": ">=1.0,<1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-or-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower": ">=1.0,<1.1||>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower": ">=1.0,<1.1 | |>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single": ">=1.0 , <2.0", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed": " >=1.0 , <2.0 ", + "version-range/lower-and-upper-with-comma-untrimmed": " >=1.0,<2.0 ", + "version-range/lower-and-upper-with-space-double": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-double-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-and-upper-with-space-single": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-single-or-lower": ">=1.0 <1.1 || >=1.2", + "version-range/lower-and-upper-with-space-single-or-lower-untrimmed": " >=1.0 <1.1 || >=1.2 ", + "version-range/lower-and-upper-with-space-single-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-untrimmed": " >=1.0 ", + "version-range/tilde-major": "~1", + "version-range/tilde-major-minor": "~1.2", + "version-range/tilde-major-minor-patch": "~1.2.3", + "version-range/tilde-major-minor-patch-untrimmed": " ~1.2.3 ", + "version-range/tilde-major-minor-untrimmed": " ~1.2 ", + "version-range/tilde-major-untrimmed": " ~1 ", + "version-range/upper": "<2.0", + "version-range/upper-untrimmed": " <2.0 " + }, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsEmpty/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsEmpty/normalized.json new file mode 100644 index 00000000..6a243509 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsEmpty/normalized.json @@ -0,0 +1 @@ +{"provide":{},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsEmpty/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsEmpty/original.json new file mode 100644 index 00000000..07c2fd24 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsEmpty/original.json @@ -0,0 +1,7 @@ +{ + "provide": {}, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsMissing/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsMissing/original.json new file mode 100644 index 00000000..6a6348ad --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsMissing/original.json @@ -0,0 +1,6 @@ +{ + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsPresent/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsPresent/normalized.json new file mode 100644 index 00000000..14751293 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsPresent/normalized.json @@ -0,0 +1 @@ +{"provide":{"branch\/main":"dev-main","branch\/main-referencing-commit":"dev-main#bf2eeff","branch\/main-referencing-commit-untrimmed":"dev-main#bf2eeff","branch\/main-untrimmed":"dev-main","branch\/my-feature":"dev-my-feature","branch\/my-feature-untrimmed":"dev-my-feature","exact\/major":"1","exact\/major-minor":"1.2","exact\/major-minor-patch":"1.2.3","exact\/major-minor-patch-untrimmed":"1.2.3","exact\/major-minor-untrimmed":"1.2","exact\/major-untrimmed":"1","version-range\/caret-major":"^1","version-range\/caret-major-minor":"^1.2","version-range\/caret-major-minor-patch":"^1.2.3","version-range\/caret-major-minor-patch-untrimmed":"^1.2.3","version-range\/caret-major-minor-untrimmed":"^1.2","version-range\/caret-major-untrimmed":"^1","version-range\/hyphen-surrounded-by-space-double":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-double-untrimmed":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single-untrimmed":"1.0 - 2.0","version-range\/lower":">=1.0","version-range\/lower-and-upper-with-comma":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower":">=1.0,<1.1 || || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-space-double":">=1.0 <2.0","version-range\/lower-and-upper-with-space-double-untrimmed":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single-or-lower":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-or-lower-untrimmed":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-untrimmed":">=1.0 <2.0","version-range\/lower-untrimmed":">=1.0","version-range\/tilde-major":"~1","version-range\/tilde-major-minor":"~1.2","version-range\/tilde-major-minor-patch":"~1.2.3","version-range\/tilde-major-minor-patch-untrimmed":"~1.2.3","version-range\/tilde-major-minor-untrimmed":"~1.2","version-range\/tilde-major-untrimmed":"~1","version-range\/upper":"<2.0","version-range\/upper-untrimmed":"<2.0"},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsPresent/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsPresent/original.json new file mode 100644 index 00000000..5dc270ed --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Provide/IsPresent/original.json @@ -0,0 +1,60 @@ +{ + "provide": { + "branch/main": "dev-main", + "branch/main-referencing-commit": "dev-main#bf2eeff", + "branch/main-referencing-commit-untrimmed": "dev-main#bf2eeff", + "branch/main-untrimmed": " dev-main ", + "branch/my-feature": "dev-my-feature", + "branch/my-feature-untrimmed": " dev-my-feature ", + "exact/major": "1", + "exact/major-minor": "1.2", + "exact/major-minor-patch": "1.2.3", + "exact/major-minor-patch-untrimmed": " 1.2.3 ", + "exact/major-minor-untrimmed": " 1.2 ", + "exact/major-untrimmed": " 1 ", + "version-range/caret-major":"^1", + "version-range/caret-major-minor":"^1.2", + "version-range/caret-major-minor-patch":"^1.2.3", + "version-range/caret-major-minor-patch-untrimmed":" ^1.2.3 ", + "version-range/caret-major-minor-untrimmed":" ^1.2 ", + "version-range/caret-major-untrimmed":" ^1 ", + "version-range/hyphen-surrounded-by-space-double": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-double-untrimmed": " 1.0 - 2.0 ", + "version-range/hyphen-surrounded-by-space-single": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-single-untrimmed": " 1.0 - 2.0 ", + "version-range/lower": ">=1.0", + "version-range/lower-and-upper-with-comma": ">=1.0,<2.0", + "version-range/lower-and-upper-with-comma-or-lower": ">=1.0,<1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-or-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower": ">=1.0,<1.1||>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower": ">=1.0,<1.1 | |>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single": ">=1.0 , <2.0", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed": " >=1.0 , <2.0 ", + "version-range/lower-and-upper-with-comma-untrimmed": " >=1.0,<2.0 ", + "version-range/lower-and-upper-with-space-double": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-double-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-and-upper-with-space-single": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-single-or-lower": ">=1.0 <1.1 || >=1.2", + "version-range/lower-and-upper-with-space-single-or-lower-untrimmed": " >=1.0 <1.1 || >=1.2 ", + "version-range/lower-and-upper-with-space-single-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-untrimmed": " >=1.0 ", + "version-range/tilde-major": "~1", + "version-range/tilde-major-minor": "~1.2", + "version-range/tilde-major-minor-patch": "~1.2.3", + "version-range/tilde-major-minor-patch-untrimmed": " ~1.2.3 ", + "version-range/tilde-major-minor-untrimmed": " ~1.2 ", + "version-range/tilde-major-untrimmed": " ~1 ", + "version-range/upper": "<2.0", + "version-range/upper-untrimmed": " <2.0 " + }, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsEmpty/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsEmpty/normalized.json new file mode 100644 index 00000000..dc2547c5 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsEmpty/normalized.json @@ -0,0 +1 @@ +{"replace":{},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsEmpty/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsEmpty/original.json new file mode 100644 index 00000000..58d3758d --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsEmpty/original.json @@ -0,0 +1,7 @@ +{ + "replace": {}, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsMissing/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsMissing/original.json new file mode 100644 index 00000000..6a6348ad --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsMissing/original.json @@ -0,0 +1,6 @@ +{ + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsPresent/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsPresent/normalized.json new file mode 100644 index 00000000..82623619 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsPresent/normalized.json @@ -0,0 +1 @@ +{"replace":{"branch\/main":"dev-main","branch\/main-referencing-commit":"dev-main#bf2eeff","branch\/main-referencing-commit-untrimmed":"dev-main#bf2eeff","branch\/main-untrimmed":"dev-main","branch\/my-feature":"dev-my-feature","branch\/my-feature-untrimmed":"dev-my-feature","exact\/major":"1","exact\/major-minor":"1.2","exact\/major-minor-patch":"1.2.3","exact\/major-minor-patch-untrimmed":"1.2.3","exact\/major-minor-untrimmed":"1.2","exact\/major-untrimmed":"1","version-range\/caret-major":"^1","version-range\/caret-major-minor":"^1.2","version-range\/caret-major-minor-patch":"^1.2.3","version-range\/caret-major-minor-patch-untrimmed":"^1.2.3","version-range\/caret-major-minor-untrimmed":"^1.2","version-range\/caret-major-untrimmed":"^1","version-range\/hyphen-surrounded-by-space-double":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-double-untrimmed":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single-untrimmed":"1.0 - 2.0","version-range\/lower":">=1.0","version-range\/lower-and-upper-with-comma":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower":">=1.0,<1.1 || || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-space-double":">=1.0 <2.0","version-range\/lower-and-upper-with-space-double-untrimmed":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single-or-lower":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-or-lower-untrimmed":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-untrimmed":">=1.0 <2.0","version-range\/lower-untrimmed":">=1.0","version-range\/tilde-major":"~1","version-range\/tilde-major-minor":"~1.2","version-range\/tilde-major-minor-patch":"~1.2.3","version-range\/tilde-major-minor-patch-untrimmed":"~1.2.3","version-range\/tilde-major-minor-untrimmed":"~1.2","version-range\/tilde-major-untrimmed":"~1","version-range\/upper":"<2.0","version-range\/upper-untrimmed":"<2.0"},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsPresent/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsPresent/original.json new file mode 100644 index 00000000..9925754a --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Replace/IsPresent/original.json @@ -0,0 +1,60 @@ +{ + "replace": { + "branch/main": "dev-main", + "branch/main-referencing-commit": "dev-main#bf2eeff", + "branch/main-referencing-commit-untrimmed": "dev-main#bf2eeff", + "branch/main-untrimmed": " dev-main ", + "branch/my-feature": "dev-my-feature", + "branch/my-feature-untrimmed": " dev-my-feature ", + "exact/major": "1", + "exact/major-minor": "1.2", + "exact/major-minor-patch": "1.2.3", + "exact/major-minor-patch-untrimmed": " 1.2.3 ", + "exact/major-minor-untrimmed": " 1.2 ", + "exact/major-untrimmed": " 1 ", + "version-range/caret-major":"^1", + "version-range/caret-major-minor":"^1.2", + "version-range/caret-major-minor-patch":"^1.2.3", + "version-range/caret-major-minor-patch-untrimmed":" ^1.2.3 ", + "version-range/caret-major-minor-untrimmed":" ^1.2 ", + "version-range/caret-major-untrimmed":" ^1 ", + "version-range/hyphen-surrounded-by-space-double": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-double-untrimmed": " 1.0 - 2.0 ", + "version-range/hyphen-surrounded-by-space-single": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-single-untrimmed": " 1.0 - 2.0 ", + "version-range/lower": ">=1.0", + "version-range/lower-and-upper-with-comma": ">=1.0,<2.0", + "version-range/lower-and-upper-with-comma-or-lower": ">=1.0,<1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-or-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower": ">=1.0,<1.1||>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower": ">=1.0,<1.1 | |>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single": ">=1.0 , <2.0", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed": " >=1.0 , <2.0 ", + "version-range/lower-and-upper-with-comma-untrimmed": " >=1.0,<2.0 ", + "version-range/lower-and-upper-with-space-double": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-double-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-and-upper-with-space-single": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-single-or-lower": ">=1.0 <1.1 || >=1.2", + "version-range/lower-and-upper-with-space-single-or-lower-untrimmed": " >=1.0 <1.1 || >=1.2 ", + "version-range/lower-and-upper-with-space-single-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-untrimmed": " >=1.0 ", + "version-range/tilde-major": "~1", + "version-range/tilde-major-minor": "~1.2", + "version-range/tilde-major-minor-patch": "~1.2.3", + "version-range/tilde-major-minor-patch-untrimmed": " ~1.2.3 ", + "version-range/tilde-major-minor-untrimmed": " ~1.2 ", + "version-range/tilde-major-untrimmed": " ~1 ", + "version-range/upper": "<2.0", + "version-range/upper-untrimmed": " <2.0 " + }, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsEmpty/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsEmpty/normalized.json new file mode 100644 index 00000000..0371a6c0 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsEmpty/normalized.json @@ -0,0 +1 @@ +{"require":{},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsEmpty/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsEmpty/original.json new file mode 100644 index 00000000..aaa5b261 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsEmpty/original.json @@ -0,0 +1,7 @@ +{ + "require": {}, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsMissing/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsMissing/original.json new file mode 100644 index 00000000..6a6348ad --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsMissing/original.json @@ -0,0 +1,6 @@ +{ + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsPresent/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsPresent/normalized.json new file mode 100644 index 00000000..0e6fc195 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsPresent/normalized.json @@ -0,0 +1 @@ +{"require":{"branch\/main":"dev-main","branch\/main-referencing-commit":"dev-main#bf2eeff","branch\/main-referencing-commit-untrimmed":"dev-main#bf2eeff","branch\/main-untrimmed":"dev-main","branch\/my-feature":"dev-my-feature","branch\/my-feature-untrimmed":"dev-my-feature","exact\/major":"1","exact\/major-minor":"1.2","exact\/major-minor-patch":"1.2.3","exact\/major-minor-patch-untrimmed":"1.2.3","exact\/major-minor-untrimmed":"1.2","exact\/major-untrimmed":"1","version-range\/caret-major":"^1","version-range\/caret-major-minor":"^1.2","version-range\/caret-major-minor-patch":"^1.2.3","version-range\/caret-major-minor-patch-untrimmed":"^1.2.3","version-range\/caret-major-minor-untrimmed":"^1.2","version-range\/caret-major-untrimmed":"^1","version-range\/hyphen-surrounded-by-space-double":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-double-untrimmed":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single-untrimmed":"1.0 - 2.0","version-range\/lower":">=1.0","version-range\/lower-and-upper-with-comma":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower":">=1.0,<1.1 || || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-space-double":">=1.0 <2.0","version-range\/lower-and-upper-with-space-double-untrimmed":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single-or-lower":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-or-lower-untrimmed":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-untrimmed":">=1.0 <2.0","version-range\/lower-untrimmed":">=1.0","version-range\/tilde-major":"~1","version-range\/tilde-major-minor":"~1.2","version-range\/tilde-major-minor-patch":"~1.2.3","version-range\/tilde-major-minor-patch-untrimmed":"~1.2.3","version-range\/tilde-major-minor-untrimmed":"~1.2","version-range\/tilde-major-untrimmed":"~1","version-range\/upper":"<2.0","version-range\/upper-untrimmed":"<2.0"},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsPresent/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsPresent/original.json new file mode 100644 index 00000000..ec74e726 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/Require/IsPresent/original.json @@ -0,0 +1,60 @@ +{ + "require": { + "branch/main": "dev-main", + "branch/main-referencing-commit": "dev-main#bf2eeff", + "branch/main-referencing-commit-untrimmed": "dev-main#bf2eeff", + "branch/main-untrimmed": " dev-main ", + "branch/my-feature": "dev-my-feature", + "branch/my-feature-untrimmed": " dev-my-feature ", + "exact/major": "1", + "exact/major-minor": "1.2", + "exact/major-minor-patch": "1.2.3", + "exact/major-minor-patch-untrimmed": " 1.2.3 ", + "exact/major-minor-untrimmed": " 1.2 ", + "exact/major-untrimmed": " 1 ", + "version-range/caret-major":"^1", + "version-range/caret-major-minor":"^1.2", + "version-range/caret-major-minor-patch":"^1.2.3", + "version-range/caret-major-minor-patch-untrimmed":" ^1.2.3 ", + "version-range/caret-major-minor-untrimmed":" ^1.2 ", + "version-range/caret-major-untrimmed":" ^1 ", + "version-range/hyphen-surrounded-by-space-double": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-double-untrimmed": " 1.0 - 2.0 ", + "version-range/hyphen-surrounded-by-space-single": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-single-untrimmed": " 1.0 - 2.0 ", + "version-range/lower": ">=1.0", + "version-range/lower-and-upper-with-comma": ">=1.0,<2.0", + "version-range/lower-and-upper-with-comma-or-lower": ">=1.0,<1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-or-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower": ">=1.0,<1.1||>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower": ">=1.0,<1.1 | |>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single": ">=1.0 , <2.0", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed": " >=1.0 , <2.0 ", + "version-range/lower-and-upper-with-comma-untrimmed": " >=1.0,<2.0 ", + "version-range/lower-and-upper-with-space-double": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-double-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-and-upper-with-space-single": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-single-or-lower": ">=1.0 <1.1 || >=1.2", + "version-range/lower-and-upper-with-space-single-or-lower-untrimmed": " >=1.0 <1.1 || >=1.2 ", + "version-range/lower-and-upper-with-space-single-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-untrimmed": " >=1.0 ", + "version-range/tilde-major": "~1", + "version-range/tilde-major-minor": "~1.2", + "version-range/tilde-major-minor-patch": "~1.2.3", + "version-range/tilde-major-minor-patch-untrimmed": " ~1.2.3 ", + "version-range/tilde-major-minor-untrimmed": " ~1.2 ", + "version-range/tilde-major-untrimmed": " ~1 ", + "version-range/upper": "<2.0", + "version-range/upper-untrimmed": " <2.0 " + }, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsEmpty/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsEmpty/normalized.json new file mode 100644 index 00000000..e86389d3 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsEmpty/normalized.json @@ -0,0 +1 @@ +{"require-dev":{},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsEmpty/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsEmpty/original.json new file mode 100644 index 00000000..62456235 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsEmpty/original.json @@ -0,0 +1,7 @@ +{ + "require-dev": {}, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsMissing/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsMissing/original.json new file mode 100644 index 00000000..6a6348ad --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsMissing/original.json @@ -0,0 +1,6 @@ +{ + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsPresent/normalized.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsPresent/normalized.json new file mode 100644 index 00000000..da1f77e8 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsPresent/normalized.json @@ -0,0 +1 @@ +{"require-dev":{"branch\/main":"dev-main","branch\/main-referencing-commit":"dev-main#bf2eeff","branch\/main-referencing-commit-untrimmed":"dev-main#bf2eeff","branch\/main-untrimmed":"dev-main","branch\/my-feature":"dev-my-feature","branch\/my-feature-untrimmed":"dev-my-feature","exact\/major":"1","exact\/major-minor":"1.2","exact\/major-minor-patch":"1.2.3","exact\/major-minor-patch-untrimmed":"1.2.3","exact\/major-minor-untrimmed":"1.2","exact\/major-untrimmed":"1","version-range\/caret-major":"^1","version-range\/caret-major-minor":"^1.2","version-range\/caret-major-minor-patch":"^1.2.3","version-range\/caret-major-minor-patch-untrimmed":"^1.2.3","version-range\/caret-major-minor-untrimmed":"^1.2","version-range\/caret-major-untrimmed":"^1","version-range\/hyphen-surrounded-by-space-double":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-double-untrimmed":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single":"1.0 - 2.0","version-range\/hyphen-surrounded-by-space-single-untrimmed":"1.0 - 2.0","version-range\/lower":">=1.0","version-range\/lower-and-upper-with-comma":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower":">=1.0,<1.1 || || >=1.2","version-range\/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed":">=1.0,<1.1 || >=1.2","version-range\/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-comma-untrimmed":">=1.0,<2.0","version-range\/lower-and-upper-with-space-double":">=1.0 <2.0","version-range\/lower-and-upper-with-space-double-untrimmed":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single":">=1.0 <2.0","version-range\/lower-and-upper-with-space-single-or-lower":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-or-lower-untrimmed":">=1.0 <1.1 || >=1.2","version-range\/lower-and-upper-with-space-single-untrimmed":">=1.0 <2.0","version-range\/lower-untrimmed":">=1.0","version-range\/tilde-major":"~1","version-range\/tilde-major-minor":"~1.2","version-range\/tilde-major-minor-patch":"~1.2.3","version-range\/tilde-major-minor-patch-untrimmed":"~1.2.3","version-range\/tilde-major-minor-untrimmed":"~1.2","version-range\/tilde-major-untrimmed":"~1","version-range\/upper":"<2.0","version-range\/upper-untrimmed":"<2.0"},"foo":{"qux":"quux","bar":"baz"}} \ No newline at end of file diff --git a/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsPresent/original.json b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsPresent/original.json new file mode 100644 index 00000000..2d324021 --- /dev/null +++ b/test/Fixture/Vendor/Composer/VersionConstraintNormalizer/NormalizeNormalizes/Json/IsObject/RequireDev/IsPresent/original.json @@ -0,0 +1,60 @@ +{ + "require-dev": { + "branch/main": "dev-main", + "branch/main-referencing-commit": "dev-main#bf2eeff", + "branch/main-referencing-commit-untrimmed": "dev-main#bf2eeff", + "branch/main-untrimmed": " dev-main ", + "branch/my-feature": "dev-my-feature", + "branch/my-feature-untrimmed": " dev-my-feature ", + "exact/major": "1", + "exact/major-minor": "1.2", + "exact/major-minor-patch": "1.2.3", + "exact/major-minor-patch-untrimmed": " 1.2.3 ", + "exact/major-minor-untrimmed": " 1.2 ", + "exact/major-untrimmed": " 1 ", + "version-range/caret-major":"^1", + "version-range/caret-major-minor":"^1.2", + "version-range/caret-major-minor-patch":"^1.2.3", + "version-range/caret-major-minor-patch-untrimmed":" ^1.2.3 ", + "version-range/caret-major-minor-untrimmed":" ^1.2 ", + "version-range/caret-major-untrimmed":" ^1 ", + "version-range/hyphen-surrounded-by-space-double": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-double-untrimmed": " 1.0 - 2.0 ", + "version-range/hyphen-surrounded-by-space-single": "1.0 - 2.0", + "version-range/hyphen-surrounded-by-space-single-untrimmed": " 1.0 - 2.0 ", + "version-range/lower": ">=1.0", + "version-range/lower-and-upper-with-comma": ">=1.0,<2.0", + "version-range/lower-and-upper-with-comma-or-lower": ">=1.0,<1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-or-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower": ">=1.0,<1.1||>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-double-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower": ">=1.0,<1.1 | |>=1.2", + "version-range/lower-and-upper-with-comma-or-surrounded-by-space-single-lower-untrimmed": " >=1.0,<1.1 || >=1.2 ", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-double-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single": ">=1.0 , <2.0", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-or-lower-untrimmed": ">=1.0 , <1.1 || >=1.2", + "version-range/lower-and-upper-with-comma-surrounded-by-space-single-untrimmed": " >=1.0 , <2.0 ", + "version-range/lower-and-upper-with-comma-untrimmed": " >=1.0,<2.0 ", + "version-range/lower-and-upper-with-space-double": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-double-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-and-upper-with-space-single": ">=1.0 <2.0", + "version-range/lower-and-upper-with-space-single-or-lower": ">=1.0 <1.1 || >=1.2", + "version-range/lower-and-upper-with-space-single-or-lower-untrimmed": " >=1.0 <1.1 || >=1.2 ", + "version-range/lower-and-upper-with-space-single-untrimmed": " >=1.0 <2.0 ", + "version-range/lower-untrimmed": " >=1.0 ", + "version-range/tilde-major": "~1", + "version-range/tilde-major-minor": "~1.2", + "version-range/tilde-major-minor-patch": "~1.2.3", + "version-range/tilde-major-minor-patch-untrimmed": " ~1.2.3 ", + "version-range/tilde-major-minor-untrimmed": " ~1.2 ", + "version-range/tilde-major-untrimmed": " ~1 ", + "version-range/upper": "<2.0", + "version-range/upper-untrimmed": " <2.0 " + }, + "foo": { + "qux": "quux", + "bar": "baz" + } +} diff --git a/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php b/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php index b3c79eaa..a5b9c2e0 100644 --- a/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php +++ b/test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php @@ -95,259 +95,4 @@ public static function provideScenario(): \Generator ]; } } - - /** - * @dataProvider provideVersionConstraint - */ - public function testNormalizeDoesNotModifyOtherProperty(string $constraint): void - { - $json = Json::fromString( - <<normalize($json); - - self::assertJsonStringIdenticalToJsonString($json->encoded(), $normalized->encoded()); - } - - /** - * @return \Generator - */ - public static function provideVersionConstraint(): \Generator - { - foreach (\array_keys(self::versionConstraints()) as $versionConstraint) { - yield [ - $versionConstraint, - ]; - } - } - - /** - * @dataProvider provideProperty - */ - public function testNormalizeIgnoresEmptyPackageHash(string $property): void - { - $json = Json::fromString( - <<encoded()), - 0, - ); - - $normalizer = new Vendor\Composer\VersionConstraintNormalizer(); - - $normalized = $normalizer->normalize($json); - - self::assertJsonStringIdenticalToJsonString($expected, $normalized->encoded()); - } - - /** - * @return \Generator - */ - public static function provideProperty(): \Generator - { - $properties = self::propertiesWhereValuesOfHashAreVersionConstraints(); - - foreach ($properties as $property) { - yield [ - $property, - ]; - } - } - - /** - * @dataProvider providePropertyAndVersionConstraint - */ - public function testNormalizeNormalizesVersionConstraints( - string $property, - string $versionConstraint, - string $normalizedVersionConstraint, - ): void { - $json = Json::fromString( - <<normalize($json); - - self::assertJsonStringEqualsJsonString($expected->encoded(), $normalized->encoded()); - } - - /** - * @return \Generator - */ - public static function providePropertyAndVersionConstraint(): \Generator - { - $properties = self::propertiesWhereValuesOfHashAreVersionConstraints(); - $versionConstraints = self::versionConstraints(); - - foreach ($properties as $property) { - foreach ($versionConstraints as $versionConstraint => $normalizedVersionConstraint) { - yield [ - $property, - $versionConstraint, - $normalizedVersionConstraint, - ]; - } - } - } - - /** - * @dataProvider providePropertyAndUntrimmedVersionConstraint - */ - public function testNormalizeNormalizesTrimsVersionConstraints( - string $property, - string $versionConstraint, - string $trimmedVersionConstraint, - ): void { - $json = Json::fromString( - <<normalize($json); - - self::assertJsonStringEqualsJsonString($expected->encoded(), $normalized->encoded()); - } - - /** - * @return \Generator - */ - public static function providePropertyAndUntrimmedVersionConstraint(): \Generator - { - $spaces = [ - '', - ' ', - ]; - - $properties = self::propertiesWhereValuesOfHashAreVersionConstraints(); - $versionConstraints = \array_unique(\array_values(self::versionConstraints())); - - foreach ($properties as $property) { - foreach ($versionConstraints as $trimmedVersionConstraint) { - foreach ($spaces as $prefix) { - foreach ($spaces as $suffix) { - $untrimmedVersionConstraint = $prefix . $trimmedVersionConstraint . $suffix; - - if ($trimmedVersionConstraint === $untrimmedVersionConstraint) { - continue; - } - - yield [ - $property, - $untrimmedVersionConstraint, - $trimmedVersionConstraint, - ]; - } - } - } - } - } - - /** - * @return array - */ - private static function propertiesWhereValuesOfHashAreVersionConstraints(): array - { - return [ - 'conflict', - 'provide', - 'replace', - 'require', - 'require-dev', - ]; - } - - /** - * @see https://getcomposer.org/doc/articles/versions.md - * - * @return array - */ - private static function versionConstraints(): array - { - return [ - /** - * @see https://getcomposer.org/doc/articles/versions.md#branches - */ - 'dev-main' => 'dev-main', - 'dev-my-feature' => 'dev-my-feature', - 'dev-main#bf2eeff' => 'dev-main#bf2eeff', - /** - * @see https://getcomposer.org/doc/articles/versions.md#exact-version-constraint - */ - '1.0.2' => '1.0.2', - /** - * @see https://getcomposer.org/doc/articles/versions.md#version-range - */ - '>=1.0' => '>=1.0', - '>=1.0 <2.0' => '>=1.0 <2.0', - '>=1.0,<2.0' => '>=1.0,<2.0', - '>=1.0 <2.0' => '>=1.0 <2.0', - '>=1.0 , <2.0' => '>=1.0,<2.0', - '>=1.0 <1.1 || >=1.2' => '>=1.0 <1.1 || >=1.2', - '>=1.0,<1.1 || >=1.2' => '>=1.0,<1.1 || >=1.2', - '>=1.0 <1.1||>=1.2' => '>=1.0 <1.1 || >=1.2', - /** - * @see https://getcomposer.org/doc/articles/versions.md#hyphenated-version-range- - */ - '1.0 - 2.0' => '1.0 - 2.0', - '1.0 - 2.0' => '1.0 - 2.0', - /** - * @see https://getcomposer.org/doc/articles/versions.md#next-significant-release-operators - */ - '~1.2' => '~1.2', - /** - * @see https://getcomposer.org/doc/articles/versions.md#caret-version-range- - */ - '^1.2.3' => '^1.2.3', - ]; - } }