X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fcomposer%2Finstallers%2Ftests%2FComposer%2FInstallers%2FTest%2FCraftInstallerTest.php;fp=vendor%2Fcomposer%2Finstallers%2Ftests%2FComposer%2FInstallers%2FTest%2FCraftInstallerTest.php;h=0000000000000000000000000000000000000000;hp=31ccecdbccc9cd835ccb48a7bd0b84ef9035fa9e;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/composer/installers/tests/Composer/Installers/Test/CraftInstallerTest.php b/vendor/composer/installers/tests/Composer/Installers/Test/CraftInstallerTest.php deleted file mode 100644 index 31ccecdbc..000000000 --- a/vendor/composer/installers/tests/Composer/Installers/Test/CraftInstallerTest.php +++ /dev/null @@ -1,83 +0,0 @@ -installer = new CraftInstaller(); - } - - /** - * @param string $packageName - * @param string $expectedName - * - * @covers ::inflectPackageVars - * - * @dataProvider provideExpectedInflectionResults - */ - final public function testInflectPackageVars($packageName, $expectedName) - { - $installer = $this->installer; - - $vars = array('name' => $packageName); - $expected = array('name' => $expectedName); - - $actual = $installer->inflectPackageVars($vars); - - $this->assertEquals($actual, $expected); - } - - /** - * Provides various names for packages and the expected result after inflection - * - * @return array - */ - final public function provideExpectedInflectionResults() - { - return array( - // lowercase - array('foo', 'foo'), - array('craftfoo', 'craftfoo'), - array('fooplugin', 'fooplugin'), - array('craftfooplugin', 'craftfooplugin'), - // lowercase - dash - array('craft-foo', 'foo'), - array('foo-plugin', 'foo'), - array('craft-foo-plugin', 'foo'), - // lowercase - underscore - array('craft_foo', 'craft_foo'), - array('foo_plugin', 'foo_plugin'), - array('craft_foo_plugin', 'craft_foo_plugin'), - // CamelCase - array('Foo', 'Foo'), - array('CraftFoo', 'CraftFoo'), - array('FooPlugin', 'FooPlugin'), - array('CraftFooPlugin', 'CraftFooPlugin'), - // CamelCase - Dash - array('Craft-Foo', 'Foo'), - array('Foo-Plugin', 'Foo'), - array('Craft-Foo-Plugin', 'Foo'), - // CamelCase - underscore - array('Craft_Foo', 'Craft_Foo'), - array('Foo_Plugin', 'Foo_Plugin'), - array('Craft_Foo_Plugin', 'Craft_Foo_Plugin'), - ); - } -}