From 377138ecc69097fbf8fb74cc87be2212b25474d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 27 Feb 2023 11:33:42 +0100 Subject: [PATCH] Enhancement: Add tests to document current (breaking) behaviour --- .../HasEntries/No/normalized.json | 18 +++++++ .../Repositories/HasEntries/No/original.json | 18 +++++++ .../HasEntries/Yes/IsArray/normalized.json | 52 +++++++++++++++++++ .../HasEntries/Yes/IsArray/original.json | 52 +++++++++++++++++++ .../HasEntries/Yes/IsObject/normalized.json | 27 ++++++++++ .../HasEntries/Yes/IsObject/original.json | 27 ++++++++++ 6 files changed, 194 insertions(+) create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/normalized.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/original.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/normalized.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/original.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/normalized.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/original.json diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/normalized.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/normalized.json new file mode 100644 index 00000000..e0bf8e59 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/normalized.json @@ -0,0 +1,18 @@ +{ + "name": "ergebnis/json-normalizer", + "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", + "license": "MIT", + "type": "library", + "keywords": [ + "json", + "normalizer" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com" + } + ], + "homepage": "https://getcomposer.org/doc/04-schema.md#repositories", + "repositories": [] +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/original.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/original.json new file mode 100644 index 00000000..e15aff9f --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/No/original.json @@ -0,0 +1,18 @@ +{ + "name": "ergebnis/json-normalizer", + "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", + "license": "MIT", + "type": "library", + "keywords": [ + "json", + "normalizer" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com" + } + ], + "homepage": "https://getcomposer.org/doc/04-schema.md#repositories", + "repositories": [] +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/normalized.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/normalized.json new file mode 100644 index 00000000..07dc4887 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/normalized.json @@ -0,0 +1,52 @@ +{ + "name": "ergebnis/json-normalizer", + "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", + "license": "MIT", + "type": "library", + "keywords": [ + "json", + "normalizer" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com" + } + ], + "homepage": "https://getcomposer.org/doc/04-schema.md#repositories", + "repositories": [ + { + "type": "composer", + "url": "http://packages.example.com" + }, + { + "type": "composer", + "url": "https://packages.example.com", + "options": { + "ssl": { + "verify_peer": "true" + } + } + }, + { + "type": "vcs", + "url": "https://github.com/Seldaek/monolog" + }, + { + "type": "package", + "package": { + "name": "smarty/smarty", + "version": "3.1.7", + "source": { + "type": "svn", + "url": "https://smarty-php.googlecode.com/svn/", + "reference": "tags/Smarty_3_1_7/distribution/" + }, + "dist": { + "type": "zip", + "url": "https://www.smarty.net/files/Smarty-3.1.7.zip" + } + } + } + ] +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/original.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/original.json new file mode 100644 index 00000000..bc5ea9f3 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsArray/original.json @@ -0,0 +1,52 @@ +{ + "name": "ergebnis/json-normalizer", + "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", + "license": "MIT", + "type": "library", + "keywords": [ + "json", + "normalizer" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com" + } + ], + "homepage": "https://getcomposer.org/doc/04-schema.md#repositories", + "repositories": [ + { + "type": "composer", + "url": "http://packages.example.com" + }, + { + "type": "composer", + "url": "https://packages.example.com", + "options": { + "ssl": { + "verify_peer": "true" + } + } + }, + { + "type": "vcs", + "url": "https://github.com/Seldaek/monolog" + }, + { + "type": "package", + "package": { + "name": "smarty/smarty", + "version": "3.1.7", + "dist": { + "url": "https://www.smarty.net/files/Smarty-3.1.7.zip", + "type": "zip" + }, + "source": { + "url": "https://smarty-php.googlecode.com/svn/", + "type": "svn", + "reference": "tags/Smarty_3_1_7/distribution/" + } + } + } + ] +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/normalized.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/normalized.json new file mode 100644 index 00000000..9600b88e --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/normalized.json @@ -0,0 +1,27 @@ +{ + "name": "ergebnis/json-normalizer", + "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", + "license": "MIT", + "type": "library", + "keywords": [ + "json", + "normalizer" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com" + } + ], + "homepage": "https://getcomposer.org/doc/04-schema.md#repositories", + "repositories": { + "bar": { + "type": "composer", + "url": "http://packages.bar.com" + }, + "foo": { + "type": "composer", + "url": "http://packages.foo.com" + } + } +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/original.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/original.json new file mode 100644 index 00000000..a5cd7461 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Repositories/HasEntries/Yes/IsObject/original.json @@ -0,0 +1,27 @@ +{ + "name": "ergebnis/json-normalizer", + "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", + "license": "MIT", + "type": "library", + "keywords": [ + "json", + "normalizer" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com" + } + ], + "homepage": "https://getcomposer.org/doc/04-schema.md#repositories", + "repositories": { + "foo": { + "type": "composer", + "url": "http://packages.foo.com" + }, + "bar": { + "type": "composer", + "url": "http://packages.bar.com" + } + } +}