up
This commit is contained in:
104
src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Php.Tests/Fixtures/lang/php/container/composer.lock
generated
Normal file
104
src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Php.Tests/Fixtures/lang/php/container/composer.lock
generated
Normal file
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"content-hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"plugin-api-version": "2.6.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "slim/slim",
|
||||
"version": "4.12.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/slimphp/Slim.git",
|
||||
"reference": "d1e2f3a4d1e2f3a4d1e2f3a4d1e2f3a4d1e2f3a4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Slim\\": "Slim"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
"version": "2.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-message.git",
|
||||
"reference": "e2f3a4b5e2f3a4b5e2f3a4b5e2f3a4b5e2f3a4b5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "predis/predis",
|
||||
"version": "2.2.2",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/predis/predis.git",
|
||||
"reference": "f3a4b5c6f3a4b5c6f3a4b5c6f3a4b5c6f3a4b5c6"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Predis\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ext-redis",
|
||||
"version": "6.0.2",
|
||||
"type": "php-ext",
|
||||
"dist": {
|
||||
"type": "pecl",
|
||||
"url": "https://pecl.php.net/get/redis-6.0.2.tgz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mongodb/mongodb",
|
||||
"version": "1.17.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mongodb/mongo-php-library.git",
|
||||
"reference": "a4b5c6d7a4b5c6d7a4b5c6d7a4b5c6d7a4b5c6d7"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"MongoDB\\": "src/"
|
||||
},
|
||||
"files": [
|
||||
"src/functions.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ext-mongodb",
|
||||
"version": "1.17.0",
|
||||
"type": "php-ext",
|
||||
"dist": {
|
||||
"type": "pecl",
|
||||
"url": "https://pecl.php.net/get/mongodb-1.17.0.tgz"
|
||||
}
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "10.5.5",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "b5c6d7e8b5c6d7e8b5c6d7e8b5c6d7e8b5c6d7e8"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPUnit\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
[
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/ext-mongodb@1.17.0",
|
||||
"purl": "pkg:composer/ext-mongodb@1.17.0",
|
||||
"name": "ext-mongodb",
|
||||
"version": "1.17.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.type": "php-ext"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "ext-mongodb@1.17.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/ext-redis@6.0.2",
|
||||
"purl": "pkg:composer/ext-redis@6.0.2",
|
||||
"name": "ext-redis",
|
||||
"version": "6.0.2",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.type": "php-ext"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "ext-redis@6.0.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/mongodb/mongodb@1.17.0",
|
||||
"purl": "pkg:composer/mongodb/mongodb@1.17.0",
|
||||
"name": "mongodb/mongodb",
|
||||
"version": "1.17.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.files": "src/functions.php",
|
||||
"composer.autoload.psr4": "MongoDB\\->src/",
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "a4b5c6d7a4b5c6d7a4b5c6d7a4b5c6d7a4b5c6d7",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "mongodb/mongodb@1.17.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpunit/phpunit@10.5.5",
|
||||
"purl": "pkg:composer/phpunit/phpunit@10.5.5",
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "10.5.5",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "PHPUnit\\->src/",
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "b5c6d7e8b5c6d7e8b5c6d7e8b5c6d7e8b5c6d7e8",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.test": "phpunit"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpunit/phpunit@10.5.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/predis/predis@2.2.2",
|
||||
"purl": "pkg:composer/predis/predis@2.2.2",
|
||||
"name": "predis/predis",
|
||||
"version": "2.2.2",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Predis\\->src/",
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "f3a4b5c6f3a4b5c6f3a4b5c6f3a4b5c6f3a4b5c6",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "predis/predis@2.2.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/psr/http-message@2.0.0",
|
||||
"purl": "pkg:composer/psr/http-message@2.0.0",
|
||||
"name": "psr/http-message",
|
||||
"version": "2.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Psr\\Http\\Message\\->src/",
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "e2f3a4b5e2f3a4b5e2f3a4b5e2f3a4b5e2f3a4b5",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "psr/http-message@2.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/slim/slim@4.12.0",
|
||||
"purl": "pkg:composer/slim/slim@4.12.0",
|
||||
"name": "slim/slim",
|
||||
"version": "4.12.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Slim\\->Slim",
|
||||
"composer.content_hash": "f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "d1e2f3a4d1e2f3a4d1e2f3a4d1e2f3a4d1e2f3a4",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.framework": "slim"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "slim/slim@4.12.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"content-hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"plugin-api-version": "2.6.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "11.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "abcd1234abcd1234abcd1234abcd1234abcd1234"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/abcd1234",
|
||||
"shasum": "a1b2c3d4e5f6a7b8c9d0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Illuminate\\": "src/Illuminate"
|
||||
},
|
||||
"files": [
|
||||
"src/Illuminate/Foundation/helpers.php",
|
||||
"src/Illuminate/Support/helpers.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
"version": "7.8.1",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/guzzle.git",
|
||||
"reference": "ef5f8f89d0d0e3b8da1bb2e3a9c9d0a1b2c3d4e5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"GuzzleHttp\\": "src/"
|
||||
},
|
||||
"files": [
|
||||
"src/functions_include.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "monolog/monolog",
|
||||
"version": "3.5.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Seldaek/monolog.git",
|
||||
"reference": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Monolog\\": "src/Monolog"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "psr/log",
|
||||
"version": "3.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/log.git",
|
||||
"reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Log\\": "src"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "vlucas/phpdotenv",
|
||||
"version": "5.6.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/vlucas/phpdotenv.git",
|
||||
"reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Dotenv\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "11.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "fedcba98fedcba98fedcba98fedcba98fedcba98"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPUnit\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"src/Framework/Assert.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mockery/mockery",
|
||||
"version": "1.6.7",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mockery/mockery.git",
|
||||
"reference": "0cc058854b3195ba21dc6b1f7b1f60f4ef3a9c06"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Mockery\\": "library/Mockery"
|
||||
},
|
||||
"files": [
|
||||
"library/helpers.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "fakerphp/faker",
|
||||
"version": "1.23.1",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/FakerPHP/Faker.git",
|
||||
"reference": "bfb4fe148f18c79c45df6f9c6e19393795a2d07f"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Faker\\": "src/Faker/"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
[
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/fakerphp/faker@1.23.1",
|
||||
"purl": "pkg:composer/fakerphp/faker@1.23.1",
|
||||
"name": "fakerphp/faker",
|
||||
"version": "1.23.1",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Faker\\->src/Faker/",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "bfb4fe148f18c79c45df6f9c6e19393795a2d07f",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "fakerphp/faker@1.23.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/guzzlehttp/guzzle@7.8.1",
|
||||
"purl": "pkg:composer/guzzlehttp/guzzle@7.8.1",
|
||||
"name": "guzzlehttp/guzzle",
|
||||
"version": "7.8.1",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.files": "src/functions_include.php",
|
||||
"composer.autoload.psr4": "GuzzleHttp\\->src/",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "ef5f8f89d0d0e3b8da1bb2e3a9c9d0a1b2c3d4e5",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "guzzlehttp/guzzle@7.8.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/laravel/framework@11.0.0",
|
||||
"purl": "pkg:composer/laravel/framework@11.0.0",
|
||||
"name": "laravel/framework",
|
||||
"version": "11.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.files": "src/Illuminate/Foundation/helpers.php;src/Illuminate/Support/helpers.php",
|
||||
"composer.autoload.psr4": "Illuminate\\->src/Illuminate",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "false",
|
||||
"composer.dist.sha256": "a1b2c3d4e5f6a7b8c9d0",
|
||||
"composer.dist.url": "https://api.github.com/repos/laravel/framework/zipball/abcd1234",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "abcd1234abcd1234abcd1234abcd1234abcd1234",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.framework": "laravel"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "laravel/framework@11.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/mockery/mockery@1.6.7",
|
||||
"purl": "pkg:composer/mockery/mockery@1.6.7",
|
||||
"name": "mockery/mockery",
|
||||
"version": "1.6.7",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.files": "library/helpers.php",
|
||||
"composer.autoload.psr4": "Mockery\\->library/Mockery",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "0cc058854b3195ba21dc6b1f7b1f60f4ef3a9c06",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "mockery/mockery@1.6.7"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/monolog/monolog@3.5.0",
|
||||
"purl": "pkg:composer/monolog/monolog@3.5.0",
|
||||
"name": "monolog/monolog",
|
||||
"version": "3.5.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Monolog\\->src/Monolog",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "monolog/monolog@3.5.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpunit/phpunit@11.0.0",
|
||||
"purl": "pkg:composer/phpunit/phpunit@11.0.0",
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "11.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.classmap": "src/Framework/Assert.php",
|
||||
"composer.autoload.psr4": "PHPUnit\\->src/",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "fedcba98fedcba98fedcba98fedcba98fedcba98",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.test": "phpunit"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpunit/phpunit@11.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/psr/log@3.0.0",
|
||||
"purl": "pkg:composer/psr/log@3.0.0",
|
||||
"name": "psr/log",
|
||||
"version": "3.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Psr\\Log\\->src",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "fe5ea303b0887d5caefd3d431c3e61ad47037001",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "psr/log@3.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/vlucas/phpdotenv@5.6.0",
|
||||
"purl": "pkg:composer/vlucas/phpdotenv@5.6.0",
|
||||
"name": "vlucas/phpdotenv",
|
||||
"version": "5.6.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Dotenv\\->src/",
|
||||
"composer.content_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "vlucas/phpdotenv@5.6.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"content-hash": "d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9",
|
||||
"plugin-api-version": "1.1.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "zendframework/zend-mvc",
|
||||
"version": "2.7.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zendframework/zend-mvc.git",
|
||||
"reference": "a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3d4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Zend\\Mvc\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "pear/mail",
|
||||
"version": "1.6.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/Mail.git",
|
||||
"reference": "b2c3d4e5b2c3d4e5b2c3d4e5b2c3d4e5b2c3d4e5"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"Mail.php",
|
||||
"Mail/"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "phpmailer/phpmailer",
|
||||
"version": "5.2.28",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PHPMailer/PHPMailer.git",
|
||||
"reference": "c3d4e5f6c3d4e5f6c3d4e5f6c3d4e5f6c3d4e5f6"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"class.phpmailer.php",
|
||||
"class.smtp.php"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"packages-dev": []
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
[
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/pear/mail@1.6.0",
|
||||
"purl": "pkg:composer/pear/mail@1.6.0",
|
||||
"name": "pear/mail",
|
||||
"version": "1.6.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.classmap": "Mail.php;Mail/",
|
||||
"composer.content_hash": "d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "1.1.0",
|
||||
"composer.source.ref": "b2c3d4e5b2c3d4e5b2c3d4e5b2c3d4e5b2c3d4e5",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "pear/mail@1.6.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpmailer/phpmailer@5.2.28",
|
||||
"purl": "pkg:composer/phpmailer/phpmailer@5.2.28",
|
||||
"name": "phpmailer/phpmailer",
|
||||
"version": "5.2.28",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.classmap": "class.phpmailer.php;class.smtp.php",
|
||||
"composer.content_hash": "d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "1.1.0",
|
||||
"composer.source.ref": "c3d4e5f6c3d4e5f6c3d4e5f6c3d4e5f6c3d4e5f6",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpmailer/phpmailer@5.2.28"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/zendframework/zend-mvc@2.7.0",
|
||||
"purl": "pkg:composer/zendframework/zend-mvc@2.7.0",
|
||||
"name": "zendframework/zend-mvc",
|
||||
"version": "2.7.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.content_hash": "d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "1.1.0",
|
||||
"composer.source.ref": "a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3d4",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "zendframework/zend-mvc@2.7.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
90
src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Php.Tests/Fixtures/lang/php/phar/composer.lock
generated
Normal file
90
src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Php.Tests/Fixtures/lang/php/phar/composer.lock
generated
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"content-hash": "e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0",
|
||||
"plugin-api-version": "2.6.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "1.10.50",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan.git",
|
||||
"reference": "e1f2a3b4e1f2a3b4e1f2a3b4e1f2a3b4e1f2a3b4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/e1f2a3b4",
|
||||
"shasum": "f1a2b3c4d5e6f1a2b3c4d5e6"
|
||||
},
|
||||
"bin": [
|
||||
"phpstan",
|
||||
"phpstan.phar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "composer/composer",
|
||||
"version": "2.6.6",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/composer.git",
|
||||
"reference": "f2a3b4c5f2a3b4c5f2a3b4c5f2a3b4c5f2a3b4c5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Composer\\": "src/Composer"
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/composer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
"version": "2.0.3",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phar-io/manifest.git",
|
||||
"reference": "a3b4c5d6a3b4c5d6a3b4c5d6a3b4c5d6a3b4c5d6"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PharIo\\Manifest\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "phar-io/version",
|
||||
"version": "3.2.1",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phar-io/version.git",
|
||||
"reference": "b4c5d6e7b4c5d6e7b4c5d6e7b4c5d6e7b4c5d6e7"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PharIo\\Version\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "10.5.5",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "c5d6e7f8c5d6e7f8c5d6e7f8c5d6e7f8c5d6e7f8"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPUnit\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
[
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/composer/composer@2.6.6",
|
||||
"purl": "pkg:composer/composer/composer@2.6.6",
|
||||
"name": "composer/composer",
|
||||
"version": "2.6.6",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Composer\\->src/Composer",
|
||||
"composer.content_hash": "e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "f2a3b4c5f2a3b4c5f2a3b4c5f2a3b4c5f2a3b4c5",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "composer/composer@2.6.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phar-io/manifest@2.0.3",
|
||||
"purl": "pkg:composer/phar-io/manifest@2.0.3",
|
||||
"name": "phar-io/manifest",
|
||||
"version": "2.0.3",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "PharIo\\Manifest\\->src/",
|
||||
"composer.content_hash": "e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "a3b4c5d6a3b4c5d6a3b4c5d6a3b4c5d6a3b4c5d6",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phar-io/manifest@2.0.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phar-io/version@3.2.1",
|
||||
"purl": "pkg:composer/phar-io/version@3.2.1",
|
||||
"name": "phar-io/version",
|
||||
"version": "3.2.1",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "PharIo\\Version\\->src/",
|
||||
"composer.content_hash": "e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "b4c5d6e7b4c5d6e7b4c5d6e7b4c5d6e7b4c5d6e7",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phar-io/version@3.2.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpstan/phpstan@1.10.50",
|
||||
"purl": "pkg:composer/phpstan/phpstan@1.10.50",
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "1.10.50",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.content_hash": "e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0",
|
||||
"composer.dev": "false",
|
||||
"composer.dist.sha256": "f1a2b3c4d5e6f1a2b3c4d5e6",
|
||||
"composer.dist.url": "https://api.github.com/repos/phpstan/phpstan/zipball/e1f2a3b4",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "e1f2a3b4e1f2a3b4e1f2a3b4e1f2a3b4e1f2a3b4",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpstan/phpstan@1.10.50"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpunit/phpunit@10.5.5",
|
||||
"purl": "pkg:composer/phpunit/phpunit@10.5.5",
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "10.5.5",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "PHPUnit\\->src/",
|
||||
"composer.content_hash": "e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "c5d6e7f8c5d6e7f8c5d6e7f8c5d6e7f8c5d6e7f8",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.test": "phpunit"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpunit/phpunit@10.5.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
116
src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Php.Tests/Fixtures/lang/php/symfony/composer.lock
generated
Normal file
116
src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Php.Tests/Fixtures/lang/php/symfony/composer.lock
generated
Normal file
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"content-hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"plugin-api-version": "2.6.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "symfony/symfony",
|
||||
"version": "7.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/symfony.git",
|
||||
"reference": "1234abcd1234abcd1234abcd1234abcd1234abcd"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\": "src/Symfony"
|
||||
},
|
||||
"classmap": [
|
||||
"src/Symfony/Component/HttpKernel/Kernel.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
"version": "7.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/console.git",
|
||||
"reference": "2345bcde2345bcde2345bcde2345bcde2345bcde"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\Console\\": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "symfony/http-foundation",
|
||||
"version": "7.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/http-foundation.git",
|
||||
"reference": "3456cdef3456cdef3456cdef3456cdef3456cdef"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\HttpFoundation\\": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "doctrine/orm",
|
||||
"version": "3.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/doctrine/orm.git",
|
||||
"reference": "4567def04567def04567def04567def04567def0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Doctrine\\ORM\\": "src"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "twig/twig",
|
||||
"version": "3.8.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/twigphp/Twig.git",
|
||||
"reference": "5678ef015678ef015678ef015678ef015678ef01"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Twig\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "10.5.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "6789f0126789f0126789f0126789f0126789f012"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPUnit\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "symfony/phpunit-bridge",
|
||||
"version": "7.0.0",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/phpunit-bridge.git",
|
||||
"reference": "789a0123789a0123789a0123789a0123789a0123"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Bridge\\PhpUnit\\": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
[
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/doctrine/orm@3.0.0",
|
||||
"purl": "pkg:composer/doctrine/orm@3.0.0",
|
||||
"name": "doctrine/orm",
|
||||
"version": "3.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Doctrine\\ORM\\->src",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "4567def04567def04567def04567def04567def0",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "doctrine/orm@3.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpunit/phpunit@10.5.0",
|
||||
"purl": "pkg:composer/phpunit/phpunit@10.5.0",
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "10.5.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "PHPUnit\\->src/",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "6789f0126789f0126789f0126789f0126789f012",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.test": "phpunit"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpunit/phpunit@10.5.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/symfony/console@7.0.0",
|
||||
"purl": "pkg:composer/symfony/console@7.0.0",
|
||||
"name": "symfony/console",
|
||||
"version": "7.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Symfony\\Component\\Console\\->",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "2345bcde2345bcde2345bcde2345bcde2345bcde",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "symfony/console@7.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/symfony/http-foundation@7.0.0",
|
||||
"purl": "pkg:composer/symfony/http-foundation@7.0.0",
|
||||
"name": "symfony/http-foundation",
|
||||
"version": "7.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Symfony\\Component\\HttpFoundation\\->",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "3456cdef3456cdef3456cdef3456cdef3456cdef",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "symfony/http-foundation@7.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/symfony/phpunit-bridge@7.0.0",
|
||||
"purl": "pkg:composer/symfony/phpunit-bridge@7.0.0",
|
||||
"name": "symfony/phpunit-bridge",
|
||||
"version": "7.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Symfony\\Bridge\\PhpUnit\\->",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "789a0123789a0123789a0123789a0123789a0123",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "symfony/phpunit-bridge@7.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/symfony/symfony@7.0.0",
|
||||
"purl": "pkg:composer/symfony/symfony@7.0.0",
|
||||
"name": "symfony/symfony",
|
||||
"version": "7.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.classmap": "src/Symfony/Component/HttpKernel/Kernel.php",
|
||||
"composer.autoload.psr4": "Symfony\\->src/Symfony",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "1234abcd1234abcd1234abcd1234abcd1234abcd",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.framework": "symfony"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "symfony/symfony@7.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/twig/twig@3.8.0",
|
||||
"purl": "pkg:composer/twig/twig@3.8.0",
|
||||
"name": "twig/twig",
|
||||
"version": "3.8.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Twig\\->src/",
|
||||
"composer.content_hash": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "5678ef015678ef015678ef015678ef015678ef01",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "twig/twig@3.8.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"content-hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"plugin-api-version": "2.6.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "wordpress/wordpress",
|
||||
"version": "6.4.2",
|
||||
"type": "wordpress-core",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/WordPress/WordPress.git",
|
||||
"reference": "abcdef01abcdef01abcdef01abcdef01abcdef01"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"wp-includes/class-wp.php",
|
||||
"wp-includes/class-wp-query.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "wpackagist-plugin/woocommerce",
|
||||
"version": "8.4.0",
|
||||
"type": "wordpress-plugin",
|
||||
"source": {
|
||||
"type": "svn",
|
||||
"url": "https://plugins.svn.wordpress.org/woocommerce/",
|
||||
"reference": "trunk"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Automattic\\WooCommerce\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "wpackagist-plugin/advanced-custom-fields",
|
||||
"version": "6.2.4",
|
||||
"type": "wordpress-plugin",
|
||||
"source": {
|
||||
"type": "svn",
|
||||
"url": "https://plugins.svn.wordpress.org/advanced-custom-fields/",
|
||||
"reference": "trunk"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "johnpbloch/wordpress-core-installer",
|
||||
"version": "2.0.0",
|
||||
"type": "composer-plugin",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/johnpbloch/wordpress-core-installer.git",
|
||||
"reference": "0bcebe70c7a4c5d2bed0f5b82edbe4d28c13d97a"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"johnpbloch\\Composer\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "9.6.15",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "0e7b8d61a51b99a0be6d6cf3cfbc01a56a4a620e"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPUnit\\": "src/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "wp-phpunit/wp-phpunit",
|
||||
"version": "6.4.2",
|
||||
"type": "library",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/wp-phpunit/wp-phpunit.git",
|
||||
"reference": "8910abcd8910abcd8910abcd8910abcd8910abcd"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"includes/"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
[
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/johnpbloch/wordpress-core-installer@2.0.0",
|
||||
"purl": "pkg:composer/johnpbloch/wordpress-core-installer@2.0.0",
|
||||
"name": "johnpbloch/wordpress-core-installer",
|
||||
"version": "2.0.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "johnpbloch\\Composer\\->src/",
|
||||
"composer.content_hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "0bcebe70c7a4c5d2bed0f5b82edbe4d28c13d97a",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "composer-plugin"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "johnpbloch/wordpress-core-installer@2.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/phpunit/phpunit@9.6.15",
|
||||
"purl": "pkg:composer/phpunit/phpunit@9.6.15",
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "9.6.15",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "PHPUnit\\->src/",
|
||||
"composer.content_hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "0e7b8d61a51b99a0be6d6cf3cfbc01a56a4a620e",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library",
|
||||
"php.capability.test": "phpunit"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "phpunit/phpunit@9.6.15"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/wordpress/wordpress@6.4.2",
|
||||
"purl": "pkg:composer/wordpress/wordpress@6.4.2",
|
||||
"name": "wordpress/wordpress",
|
||||
"version": "6.4.2",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.classmap": "wp-includes/class-wp-query.php;wp-includes/class-wp.php",
|
||||
"composer.content_hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "abcdef01abcdef01abcdef01abcdef01abcdef01",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "wordpress-core",
|
||||
"php.capability.cms": "wordpress"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "wordpress/wordpress@6.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/wp-phpunit/wp-phpunit@6.4.2",
|
||||
"purl": "pkg:composer/wp-phpunit/wp-phpunit@6.4.2",
|
||||
"name": "wp-phpunit/wp-phpunit",
|
||||
"version": "6.4.2",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.classmap": "includes/",
|
||||
"composer.content_hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"composer.dev": "true",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "8910abcd8910abcd8910abcd8910abcd8910abcd",
|
||||
"composer.source.type": "git",
|
||||
"composer.type": "library"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "wp-phpunit/wp-phpunit@6.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/wpackagist-plugin/advanced-custom-fields@6.2.4",
|
||||
"purl": "pkg:composer/wpackagist-plugin/advanced-custom-fields@6.2.4",
|
||||
"name": "wpackagist-plugin/advanced-custom-fields",
|
||||
"version": "6.2.4",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.content_hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "trunk",
|
||||
"composer.source.type": "svn",
|
||||
"composer.type": "wordpress-plugin"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "wpackagist-plugin/advanced-custom-fields@6.2.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"analyzerId": "php",
|
||||
"componentKey": "purl::pkg:composer/wpackagist-plugin/woocommerce@8.4.0",
|
||||
"purl": "pkg:composer/wpackagist-plugin/woocommerce@8.4.0",
|
||||
"name": "wpackagist-plugin/woocommerce",
|
||||
"version": "8.4.0",
|
||||
"type": "composer",
|
||||
"usedByEntrypoint": false,
|
||||
"metadata": {
|
||||
"composer.autoload.psr4": "Automattic\\WooCommerce\\->src/",
|
||||
"composer.content_hash": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8",
|
||||
"composer.dev": "false",
|
||||
"composer.plugin_api_version": "2.6.0",
|
||||
"composer.source.ref": "trunk",
|
||||
"composer.source.type": "svn",
|
||||
"composer.type": "wordpress-plugin"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "file",
|
||||
"source": "composer.lock",
|
||||
"locator": "composer.lock",
|
||||
"value": "wpackagist-plugin/woocommerce@8.4.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -6,6 +6,8 @@ namespace StellaOps.Scanner.Analyzers.Lang.Php.Tests;
|
||||
|
||||
public sealed class PhpLanguageAnalyzerTests
|
||||
{
|
||||
private static ILanguageAnalyzer[] CreateAnalyzers() => [new PhpLanguageAnalyzer()];
|
||||
|
||||
[Fact]
|
||||
public async Task ComposerLockPackagesAreEmittedAsync()
|
||||
{
|
||||
@@ -13,15 +15,94 @@ public sealed class PhpLanguageAnalyzerTests
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "basic");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
var analyzers = new ILanguageAnalyzer[]
|
||||
{
|
||||
new PhpLanguageAnalyzer()
|
||||
};
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task LaravelExtendedFixtureAsync()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "laravel-extended");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
analyzers,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SymfonyFixtureAsync()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "symfony");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task WordPressFixtureAsync()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "wordpress");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task LegacyPhpFixtureAsync()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "legacy");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task PharFixtureAsync()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "phar");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ContainerFixtureAsync()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var fixturePath = TestPaths.ResolveFixture("lang", "php", "container");
|
||||
var goldenPath = Path.Combine(fixturePath, "expected.json");
|
||||
|
||||
await LanguageAnalyzerTestHarness.AssertDeterministicAsync(
|
||||
fixturePath,
|
||||
goldenPath,
|
||||
CreateAnalyzers(),
|
||||
cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user