You are here

public function OctoberInstallerTest::packageNameInflectionProvider in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/installers/tests/Composer/Installers/Test/OctoberInstallerTest.php \Composer\Installers\Test\OctoberInstallerTest::packageNameInflectionProvider()

File

vendor/composer/installers/tests/Composer/Installers/Test/OctoberInstallerTest.php, line 34

Class

OctoberInstallerTest

Namespace

Composer\Installers\Test

Code

public function packageNameInflectionProvider() {
  return array(
    array(
      'october-plugin',
      'subpagelist',
      'subpagelist',
    ),
    array(
      'october-plugin',
      'subpagelist-plugin',
      'subpagelist',
    ),
    array(
      'october-plugin',
      'semanticoctober',
      'semanticoctober',
    ),
    // tests that exactly one '-theme' is cut off
    array(
      'october-theme',
      'some-theme-theme',
      'some-theme',
    ),
    // tests that names without '-theme' suffix stay valid
    array(
      'october-theme',
      'someothertheme',
      'someothertheme',
    ),
  );
}