X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fcomposer%2Finstallers%2Ftests%2FComposer%2FInstallers%2FTest%2FVgmcpInstallerTest.php;fp=vendor%2Fcomposer%2Finstallers%2Ftests%2FComposer%2FInstallers%2FTest%2FVgmcpInstallerTest.php;h=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=1a91588db1bbb91ae9ad240234f58987b052282b;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php b/vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php deleted file mode 100644 index 1a91588db..000000000 --- a/vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php +++ /dev/null @@ -1,80 +0,0 @@ -installer = new VgmcpInstaller( - new Package('NyanCat', '4.2', '4.2'), - new Composer() - ); - } - - /** - * @dataProvider packageNameInflectionProvider - */ - public function testInflectPackageVars($type, $name, $expected) - { - $this->assertEquals( - array('name' => $expected, 'type' => $type), - $this->installer->inflectPackageVars(array('name' => $name, 'type' => $type)) - ); - } - - public function packageNameInflectionProvider() - { - return array( - // Should keep bundle name StudlyCase - array( - 'vgmcp-bundle', - 'user-profile', - 'UserProfile' - ), - array( - 'vgmcp-bundle', - 'vgmcp-bundle', - 'Vgmcp' - ), - array( - 'vgmcp-bundle', - 'blog', - 'Blog' - ), - // tests that exactly one '-bundle' is cut off - array( - 'vgmcp-bundle', - 'some-bundle-bundle', - 'SomeBundle', - ), - // tests that exactly one '-theme' is cut off - array( - 'vgmcp-theme', - 'some-theme-theme', - 'SomeTheme', - ), - // tests that names without '-theme' suffix stay valid - array( - 'vgmcp-theme', - 'someothertheme', - 'Someothertheme', - ), - // Should keep theme name StudlyCase - array( - 'vgmcp-theme', - 'adminlte-advanced', - 'AdminlteAdvanced' - ), - ); - } -}