You are here

public function MediaWikiInstallerTest::packageNameInflectionProvider in Zircon Profile 8.0

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

File

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

Class

MediaWikiInstallerTest

Namespace

Composer\Installers\Test

Code

public function packageNameInflectionProvider() {
  return array(
    array(
      'mediawiki-extension',
      'sub-page-list',
      'SubPageList',
    ),
    array(
      'mediawiki-extension',
      'sub-page-list-extension',
      'SubPageList',
    ),
    array(
      'mediawiki-extension',
      'semantic-mediawiki',
      'SemanticMediawiki',
    ),
    // tests that exactly one '-skin' is cut off, and that skins do not get ucwords treatment like extensions
    array(
      'mediawiki-skin',
      'some-skin-skin',
      'some-skin',
    ),
    // tests that names without '-skin' suffix stay valid
    array(
      'mediawiki-skin',
      'someotherskin',
      'someotherskin',
    ),
  );
}