function VendorHardeningPluginTest::providerFindBinOverlap

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()
  2. 10 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()
  3. 9 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()
  4. 8.9.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
Tests Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin.

Namespace

Drupal\Tests\Composer\Plugin\VendorHardening

Code

public static function providerFindBinOverlap() : array {
  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.