2 namespace Composer\Installers\Test;
4 use Composer\Installers\OctoberInstaller;
5 use Composer\Package\Package;
8 class OctoberInstallerTest extends \PHPUnit_Framework_TestCase
11 * @var OctoberInstaller
15 public function setUp()
17 $this->installer = new OctoberInstaller(
18 new Package('NyanCat', '4.2', '4.2'),
24 * @dataProvider packageNameInflectionProvider
26 public function testInflectPackageVars($type, $name, $expected)
29 $this->installer->inflectPackageVars(array('name' => $name, 'type' => $type)),
30 array('name' => $expected, 'type' => $type)
34 public function packageNameInflectionProvider()
52 // tests that exactly one '-theme' is cut off
58 // tests that names without '-theme' suffix stay valid