Unverified Commit adfed3f1 authored by alexpott's avatar alexpott
Browse files

Revert "Issue #3133903 by longwave, jungle: Ensure all packages in...

Revert "Issue #3133903 by longwave, jungle: Ensure all packages in composer.lock are considered for vendor hardening"

This reverts commit f0f4922f.
parent f0f4922f
......@@ -20,65 +20,38 @@ class Config {
* @var array
*/
protected static $defaultConfig = [
'asm89/stack-cors' => ['test'],
'behat/mink' => ['tests', 'driver-testsuite'],
'behat/mink-browserkit-driver' => ['tests'],
'behat/mink-goutte-driver' => ['tests'],
'behat/mink-selenium2-driver' => ['tests'],
'composer/ca-bundle' => ['tests'],
'composer/composer' => ['bin', 'tests'],
'composer/installers' => ['tests'],
'composer/semver' => ['tests'],
'composer/spdx-licenses' => ['tests'],
'composer/xdebug-handler' => ['tests'],
'doctrine/annotations' => ['tests'],
'doctrine/instantiator' => ['tests'],
'doctrine/lexer' => ['tests'],
'doctrine/reflection' => ['tests'],
'composer/composer' => ['bin'],
'drupal/coder' => [
'coder_sniffer/Drupal/Test',
'coder_sniffer/DrupalPractice/Test',
],
'drupal/core' => [],
'drupal/core-project-message' => [],
'drupal/core-vendor-hardening' => [],
'easyrdf/easyrdf' => ['test', 'scripts'],
'egulias/email-validator' => ['documentation', 'Tests'],
'doctrine/instantiator' => ['tests'],
'easyrdf/easyrdf' => ['scripts'],
'egulias/email-validator' => ['documentation', 'tests'],
'fabpot/goutte' => ['Goutte/Tests'],
'guzzlehttp/guzzle' => ['tests'],
'guzzlehttp/promises' => ['tests'],
'guzzlehttp/psr7' => ['tests'],
'instaclick/php-webdriver' => ['doc', 'test'],
'justinrainbow/json-schema' => ['demo', 'tests'],
'laminas/laminas-diactoros' => ['test'],
'laminas/laminas-escaper' => ['test'],
'laminas/laminas-feed' => ['test'],
'laminas/laminas-stdlib' => ['test'],
'laminas/laminas-zendframework-bridge' => ['test'],
'justinrainbow/json-schema' => ['demo'],
'masterminds/html5' => ['bin', 'test'],
'mikey179/vfsstream' => ['examples', 'src/test'],
'myclabs/deep-copy' => ['doc', 'tests'],
'mikey179/vfsstream' => ['src/test'],
'myclabs/deep-copy' => ['doc'],
'pear/archive_tar' => ['docs', 'tests'],
'pear/console_getopt' => ['tests'],
'pear/pear-core-minimal' => ['tests'],
'pear/pear_exception' => ['tests'],
'phar-io/manifest' => ['examples', 'tests'],
'phar-io/version' => ['tests'],
'phpdocumentor/reflection-common' => ['tests'],
'phpdocumentor/reflection-docblock' => ['tests'],
'phpdocumentor/type-resolver' => ['tests'],
'phpspec/prophecy' => ['fixtures', 'spec', 'tests'],
'phpunit/php-code-coverage' => ['tests'],
'phpunit/php-file-iterator' => ['tests'],
'phpunit/php-text-template' => [],
'phpunit/php-timer' => ['tests'],
'phpunit/php-token-stream' => ['tests'],
'phpunit/phpunit' => ['tests'],
'psr/container' => [],
'psr/http-factory' => [],
'psr/http-message' => [],
'psr/log' => [],
'ralouphie/getallheaders' => ['tests'],
'sebastian/code-unit-reverse-lookup' => ['tests'],
'sebastian/comparator' => ['tests'],
'sebastian/diff' => ['tests'],
......@@ -88,11 +61,7 @@ class Config {
'sebastian/object-enumerator' => ['tests'],
'sebastian/object-reflector' => ['tests'],
'sebastian/recursion-context' => ['tests'],
'sebastian/resource-operations' => ['tests'],
'sebastian/type' => ['tests'],
'sebastian/version' => [],
'seld/jsonlint' => ['tests'],
'seld/phar-utils' => [],
'squizlabs/php_codesniffer' => ['tests'],
'stack/builder' => ['tests'],
'symfony/browser-kit' => ['Tests'],
......@@ -101,38 +70,22 @@ class Config {
'symfony/debug' => ['Tests'],
'symfony/dependency-injection' => ['Tests'],
'symfony/dom-crawler' => ['Tests'],
'symfony/error-handler' => ['Tests'],
'symfony/event-dispatcher' => ['Tests'],
'symfony/event-dispatcher-contracts' => [],
'symfony/filesystem' => ['Tests'],
'symfony/finder' => ['Tests'],
'symfony/event-dispatcher' => ['Tests'],
'symfony/http-foundation' => ['Tests'],
'symfony/http-kernel' => ['Tests'],
'symfony/lock' => ['Tests'],
'symfony/mime' => ['Tests'],
'symfony/phpunit-bridge' => ['Tests'],
'symfony/polyfill-ctype' => [],
'symfony/polyfill-iconv' => [],
'symfony/polyfill-intl-idn' => [],
'symfony/polyfill-mbstring' => [],
'symfony/polyfill-php72' => [],
'symfony/polyfill-php73' => [],
'symfony/polyfill-php80' => [],
'symfony/process' => ['Tests'],
'symfony/psr-http-message-bridge' => ['Tests'],
'symfony/routing' => ['Tests'],
'symfony/serializer' => ['Tests'],
'symfony/service-contracts' => ['Test', 'Tests'],
'symfony/translation' => ['Tests'],
'symfony/translation-contracts' => ['Test', 'Tests'],
'symfony/validator' => ['Test', 'Tests', 'Resources'],
'symfony/var-dumper' => ['Tests'],
'symfony/validator' => ['Tests', 'Resources'],
'symfony/yaml' => ['Tests'],
'symfony-cmf/routing' => ['tests'],
'symfony-cmf/routing' => ['Test', 'Tests'],
'theseer/tokenizer' => ['tests'],
'twig/twig' => ['doc', 'lib/Twig/Test', 'src/Test', 'tests'],
'typo3/phar-stream-wrapper' => ['tests'],
'webmozart/assert' => ['tests'],
'twig/twig' => ['doc', 'ext', 'test', 'tests'],
];
/**
......
......@@ -16,65 +16,38 @@
class Composer {
protected static $packageToCleanup = [
'asm89/stack-cors' => ['test'],
'behat/mink' => ['tests', 'driver-testsuite'],
'behat/mink-browserkit-driver' => ['tests'],
'behat/mink-goutte-driver' => ['tests'],
'behat/mink-selenium2-driver' => ['tests'],
'composer/ca-bundle' => ['tests'],
'composer/composer' => ['bin', 'tests'],
'composer/installers' => ['tests'],
'composer/semver' => ['tests'],
'composer/spdx-licenses' => ['tests'],
'composer/xdebug-handler' => ['tests'],
'doctrine/annotations' => ['tests'],
'composer/composer' => ['bin'],
'drupal/coder' => ['coder_sniffer/Drupal/Test', 'coder_sniffer/DrupalPractice/Test'],
'doctrine/instantiator' => ['tests'],
'doctrine/lexer' => ['tests'],
'doctrine/reflection' => ['tests'],
'drupal/coder' => [
'coder_sniffer/Drupal/Test',
'coder_sniffer/DrupalPractice/Test',
],
'drupal/core' => [],
'drupal/core-project-message' => [],
'drupal/core-vendor-hardening' => [],
'easyrdf/easyrdf' => ['test', 'scripts'],
'egulias/email-validator' => ['documentation', 'Tests'],
'easyrdf/easyrdf' => ['scripts'],
'egulias/email-validator' => ['documentation', 'tests'],
'fabpot/goutte' => ['Goutte/Tests'],
'guzzlehttp/guzzle' => ['tests'],
'guzzlehttp/promises' => ['tests'],
'guzzlehttp/psr7' => ['tests'],
'instaclick/php-webdriver' => ['doc', 'test'],
'justinrainbow/json-schema' => ['demo', 'tests'],
'laminas/laminas-diactoros' => ['test'],
'laminas/laminas-escaper' => ['test'],
'laminas/laminas-feed' => ['test'],
'laminas/laminas-stdlib' => ['test'],
'laminas/laminas-zendframework-bridge' => ['test'],
'justinrainbow/json-schema' => ['demo'],
'laminas/laminas-escaper' => ['doc'],
'laminas/laminas-feed' => ['doc'],
'laminas/laminas-stdlib' => ['doc'],
'masterminds/html5' => ['bin', 'test'],
'mikey179/vfsstream' => ['examples', 'src/test'],
'myclabs/deep-copy' => ['doc', 'tests'],
'mikey179/vfsStream' => ['src/test'],
'myclabs/deep-copy' => ['doc'],
'pear/archive_tar' => ['docs', 'tests'],
'pear/console_getopt' => ['tests'],
'pear/pear-core-minimal' => ['tests'],
'pear/pear_exception' => ['tests'],
'phar-io/manifest' => ['examples', 'tests'],
'phar-io/version' => ['tests'],
'phpdocumentor/reflection-common' => ['tests'],
'phpdocumentor/reflection-docblock' => ['tests'],
'phpdocumentor/type-resolver' => ['tests'],
'phpspec/prophecy' => ['fixtures', 'spec', 'tests'],
'phpunit/php-code-coverage' => ['tests'],
'phpunit/php-file-iterator' => ['tests'],
'phpunit/php-text-template' => [],
'phpunit/php-timer' => ['tests'],
'phpunit/php-token-stream' => ['tests'],
'phpunit/phpunit' => ['tests'],
'psr/container' => [],
'psr/http-factory' => [],
'psr/http-message' => [],
'psr/log' => [],
'ralouphie/getallheaders' => ['tests'],
'sebastian/code-unit-reverse-lookup' => ['tests'],
'sebastian/comparator' => ['tests'],
'sebastian/diff' => ['tests'],
......@@ -84,11 +57,7 @@ class Composer {
'sebastian/object-enumerator' => ['tests'],
'sebastian/object-reflector' => ['tests'],
'sebastian/recursion-context' => ['tests'],
'sebastian/resource-operations' => ['tests'],
'sebastian/type' => ['tests'],
'sebastian/version' => [],
'seld/jsonlint' => ['tests'],
'seld/phar-utils' => [],
'squizlabs/php_codesniffer' => ['tests'],
'stack/builder' => ['tests'],
'symfony/browser-kit' => ['Tests'],
......@@ -97,38 +66,23 @@ class Composer {
'symfony/debug' => ['Tests'],
'symfony/dependency-injection' => ['Tests'],
'symfony/dom-crawler' => ['Tests'],
'symfony/error-handler' => ['Tests'],
'symfony/event-dispatcher' => ['Tests'],
'symfony/event-dispatcher-contracts' => [],
'symfony/filesystem' => ['Tests'],
'symfony/finder' => ['Tests'],
'symfony/error-handler' => ['Tests'],
'symfony/event-dispatcher' => ['Tests'],
'symfony/http-foundation' => ['Tests'],
'symfony/http-kernel' => ['Tests'],
'symfony/lock' => ['Tests'],
'symfony/mime' => ['Tests'],
'symfony/phpunit-bridge' => ['Tests'],
'symfony/polyfill-ctype' => [],
'symfony/polyfill-iconv' => [],
'symfony/polyfill-intl-idn' => [],
'symfony/polyfill-mbstring' => [],
'symfony/polyfill-php72' => [],
'symfony/polyfill-php73' => [],
'symfony/polyfill-php80' => [],
'symfony/process' => ['Tests'],
'symfony/psr-http-message-bridge' => ['Tests'],
'symfony/routing' => ['Tests'],
'symfony/serializer' => ['Tests'],
'symfony/service-contracts' => ['Test', 'Tests'],
'symfony/translation' => ['Tests'],
'symfony/translation-contracts' => ['Test', 'Tests'],
'symfony/validator' => ['Test', 'Tests', 'Resources'],
'symfony/var-dumper' => ['Tests'],
'symfony/validator' => ['Tests', 'Resources'],
'symfony/yaml' => ['Tests'],
'symfony-cmf/routing' => ['tests'],
'symfony-cmf/routing' => ['Test', 'Tests'],
'theseer/tokenizer' => ['tests'],
'twig/twig' => ['doc', 'lib/Twig/Test', 'src/Test', 'tests'],
'typo3/phar-stream-wrapper' => ['tests'],
'webmozart/assert' => ['tests'],
'twig/twig' => ['doc', 'ext', 'test', 'tests'],
];
/**
......
......@@ -260,8 +260,9 @@ public function testVendorCleanup($class, $property) {
$reflection = new \ReflectionProperty($class, $property);
$reflection->setAccessible(TRUE);
$config = $reflection->getValue();
$config_packages = array_map('strtolower', array_keys($config));
$this->assertEqualsCanonicalizing($packages, $config_packages);
foreach (array_keys($config) as $package) {
$this->assertContains(strtolower($package), $packages);
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment