You are here

public function AsgardInstallerTest::packageNameInflectionProvider in Zircon Profile 8

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

File

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

Class

AsgardInstallerTest

Namespace

Composer\Installers\Test

Code

public function packageNameInflectionProvider() {
  return array(
    array(
      'asgard-module',
      'asgard-module',
      'Asgard',
    ),
    array(
      'asgard-module',
      'blog',
      'Blog',
    ),
    // tests that exactly one '-theme' is cut off
    array(
      'asgard-theme',
      'some-theme-theme',
      'Some-theme',
    ),
    // tests that names without '-theme' suffix stay valid
    array(
      'asgard-theme',
      'someothertheme',
      'Someothertheme',
    ),
  );
}