2 namespace Composer\Installers\Test;
4 use Composer\Installers\OctoberInstaller;
5 use Composer\Package\Package;
7 use PHPUnit\Framework\TestCase as BaseTestCase;
9 class OctoberInstallerTest extends BaseTestCase
12 * @var OctoberInstaller
16 public function setUp()
18 $this->installer = new OctoberInstaller(
19 new Package('NyanCat', '4.2', '4.2'),
25 * @dataProvider packageNameInflectionProvider
27 public function testInflectPackageVars($type, $name, $expected)
30 $this->installer->inflectPackageVars(array('name' => $name, 'type' => $type)),
31 array('name' => $expected, 'type' => $type)
35 public function packageNameInflectionProvider()
53 // tests that exactly one '-theme' is cut off
59 // tests that names without '-theme' suffix stay valid