function VendorHardeningPluginTest::providerFindBinOverlap

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()
  3. 11.x core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()

File

core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php, line 177

Class

VendorHardeningPluginTest
@coversDefaultClass \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin @group VendorHardening

Namespace

Drupal\Tests\Composer\Plugin\VendorHardening

Code

public static function providerFindBinOverlap() {
    return [
        [
            [],
            [
                'bin/script',
            ],
            [
                'tests',
            ],
        ],
        [
            [
                'bin/composer' => 'bin/composer',
            ],
            [
                'bin/composer',
            ],
            [
                'bin',
                'tests',
            ],
        ],
        [
            [
                'bin/composer' => 'bin/composer',
            ],
            [
                'bin/composer',
            ],
            [
                'bin/composer',
            ],
        ],
        [
            [],
            [
                'bin/composer',
            ],
            [
                'bin/something_else',
            ],
        ],
        [
            [],
            [
                'test/script',
            ],
            [
                'test/longer',
            ],
        ],
        [
            [
                'bin/very/long/path/script' => 'bin/very/long/path/script',
            ],
            [
                'bin/very/long/path/script',
            ],
            [
                'bin',
            ],
        ],
        [
            [
                'bin/bin/bin' => 'bin/bin/bin',
            ],
            [
                'bin/bin/bin',
            ],
            [
                'bin/bin',
            ],
        ],
        [
            [],
            [
                'bin/bin',
            ],
            [
                'bin/bin/bin',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.