/** * @param ProjectName $projectName * @param GitWrapper $gitWrapper */ public function __construct(ProjectName $projectName, GitWrapper $gitWrapper) { $this->projectName = $projectName; $this->gitWrapper = $gitWrapper; $this->fs = new Filesystem(); // Set the default config values $this->setConfig('directory', './' . $this->projectName->getName())->setConfig('label', $projectName->getName())->setConfig('description', '')->setConfig('copyright.year', date('Y'))->setConfig('namespace', $projectName->getNameCamelCased())->setConfig('class', $projectName->getNameCamelCased()); }
public function testGetNameCamelCased() { $projectName = new ProjectName('cpliakas/my-project'); $this->assertEquals($projectName->getNameCamelCased(), 'MyProject'); }